/* =========================================
   1. VARIABLES & RESET (BASE)
   ========================================= */
:root {
    --bg-deep: #050505;       /* Fondo Negro Profundo */
    --bg-panel: #121212;      /* Paneles/Tarjetas */
    --primary: #00D285;       /* Verde Neón Principal */
    --primary-dim: #0F6B4F;   /* Verde Oscuro */
    --text-main: #ffffff;
    --text-muted: #888888;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(10, 10, 10, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { width: 100%; display: block; object-fit: cover; }

/* =========================================
   2. ESTILOS DE LA PORTADA (LANDING PAGE)
   ========================================= */
.landing-page {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.background-animation {
    position: absolute;
    top: -10%; left: -10%; width: 120%; height: 120%;
    background-image: url('../assets/es-bg.jpg'); /* Asegúrate de que esta imagen exista */
    background-size: cover;
    background-position: center;
    filter: blur(8px) grayscale(100%);
    opacity: 0.4;
    z-index: 0;
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.1); } }

.intro-container {
    position: relative;
    z-index: 10;
    background: rgba(10, 10, 10, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    width: 90%;
    max-width: 500px;
}

.glow-text {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 210, 133, 0.4);
    margin-bottom: 0.5rem;
}

.subtitle { color: var(--primary); letter-spacing: 4px; font-size: 0.8rem; margin-bottom: 2rem; }

.lang-selection { display: flex; gap: 15px; justify-content: center; }

.lang-btn {
    padding: 15px 25px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    text-align: center;
    width: 120px;
}

.lang-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 210, 133, 0.05);
    box-shadow: 0 0 15px rgba(0, 210, 133, 0.2);
    transform: translateY(-2px);
}

.lang-code { display: block; font-size: 1.2rem; font-weight: 700; color: white; }
.lang-name { font-size: 0.75rem; color: #888; text-transform: uppercase; }
.intro-footer { margin-top: 2rem; font-size: 0.7rem; color: #555; }


/* =========================================
   3. ESTILOS INTERNOS (ES / EN)
   ========================================= */

/* Navbar Flotante */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.2rem 5%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.logo { font-weight: 800; font-size: 1.4rem; letter-spacing: 1px; }
.logo span { color: var(--primary); }
.nav-link { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.nav-link:hover { color: var(--primary); }

/* Hero Section Interno */
.hero-internal {
    margin-top: 80px; /* Espacio para el navbar fijo */
    padding: 4rem 2rem;
    text-align: center;
    background: radial-gradient(circle at center, #151515 0%, var(--bg-deep) 70%);
    border-bottom: 1px solid var(--border);
}
.hero-internal h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-internal p { color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }

/* Botones Generales */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-primary {
    background: var(--primary-dim);
    color: white;
    border: 1px solid transparent;
}
.btn-primary:hover {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(0, 210, 133, 0.4);
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.btn-secondary:hover { border-color: white; color: white; }
.btn-disabled { background: #222; color: #555; cursor: not-allowed; }

/* Grid de Tarjetas */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-dim);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-img-top { height: 200px; overflow: hidden; position: relative; }
.card-img-top img { transition: 0.5s; opacity: 0.8; }
.card:hover .card-img-top img { transform: scale(1.05); opacity: 1; }

.card-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.card-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; flex-grow: 1; }

.full-width { width: 100%; text-align: center; }

/* Newsletter */
.newsletter-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid var(--primary-dim);
}
.newsletter-form input {
    width: 100%; padding: 12px; margin-bottom: 10px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--border);
    color: white; border-radius: 4px;
}
.newsletter-form input:focus { outline: none; border-color: var(--primary); }

/* Footer */
.footer-internal {
    text-align: center; padding: 3rem; color: #444; font-size: 0.8rem; border-top: 1px solid #111;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-internal h1 { font-size: 2rem; }
    .grid-section { padding: 2rem; }
}