/* DEFINICIÓN DE LA PALETA DE COLORES (Variables) */
:root {
    --bg-body: #111111;
    --bg-card: #1e1e1e;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --accent: #5fffa0;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: sans-serif; */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

main {
    display: flex;
    flex-direction: column;
    padding-top: 5rem; /* Esto debe medir lo mismo que el min-height de tu header */
}

body {
    background-color: var(--bg-body);
    color: var(--text-white);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .planes button, .frase-inicio span {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}


/***** MENÚ LATERAL *****/
.menu-lateral {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: #1e1e1e;
    color: #ffffff;
    z-index: 1000;
    transition: left 0.4s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.menu-lateral.activo {
    left: 0; 
}

/* Botón de cerrar */
.cabecera-menu {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
}

.cerrar-menu {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1rem;
    cursor: pointer;
}

/* Estilos de la lista de links */
.menu-lateral nav ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.menu-lateral nav ul li {
    border-bottom: 1px solid #e0e0e0;
}

.menu-lateral nav ul li a {
    display: block;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}

.menu-lateral nav ul li a:hover {
    background-color: var(--accent);
    color: #fff;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.overlay.activo {
    display: block;
    opacity: 1;
}




/***** HEADER *****/
header {
    background-color: #000000;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5rem;
    padding: 1rem;
    
    /* CAMBIA ESTO: */
    position: fixed; /* En lugar de sticky */
    top: 0;
    width: 100%; /* Al ser fixed, necesita que le aclares el ancho */
    z-index: 100; /* Aseguramos que esté por encima de todo */


    border-bottom: 1px solid var(--border-color);
}

.iconos-header {
    background: none;
    border: none;
    font-size: 1.7rem;
    color: var(--text-white);
    cursor: pointer;
}

.lado-izq, .lado-der {
    flex: 1;
    display: flex;
}

.lado-der {
    justify-content: flex-end;
}

h1 {
    font-size: 2rem;
    letter-spacing: 2px;
    font-weight: 800;
}

/***** HEADER *****/


/***** MAIN *****/
main {
    display: flex;
    flex-direction: column;
}

/* INICIO */
.inicio {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)),
                    url(img/principal2.png);
    background-size: cover;
    background-position: -70px;
    min-height: 80vh;
    
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    
    padding-top: 10rem;
    padding-left: 5%;
}

.frase-inicio h2 {
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 400;
    
    /* --- NUEVO --- */
    animation: entrarDesdeDerecha 0.8s ease-out forwards;
}

.frase-inicio span {
    color: var(--accent);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 0.9;
    display: block; 
    opacity: 0;
    animation: entrarDesdeDerecha 0.8s ease-out 0.3s forwards; 
}

.autor {
    color: var(--text-gray);
    font-size: 1rem;
    margin-top: 1rem;
    font-style: italic;
    opacity: 0; 
    animation: entrarDesdeDerecha 0.8s ease-out 0.6s forwards;
}
/* FIN INICIO */


/* SECCIONES GENERALES */
.sec1, .sec2, .redes {
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}


/* PARTE DE FOTOS (.sec1) */
.sec1 h2 {
    color: var(--text-white);
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.sec1 img, video {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    filter: brightness(0.9); 
}

.descripcion {
    display: flex;
    flex-direction: column;
    width: 90%;
}
.descripcion h2 {
    text-align: center;
    margin: 1.8rem;
    font-size: 1.2rem;
}

.descripcion p {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    line-height: 1.6;
}

/* PLANES FIT (.sec2) */
.sec2 h2 {
    font-size: 2.5rem;
    color: var(--text-white);
    text-transform: uppercase;
    margin-top: -5rem;
}

.planes {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 90%;
    max-width: 350px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Efecto al pasar el mouse por encima del plan */
.planes:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.planes * {
    border-bottom: 1px solid var(--border-color); 
    padding: 1rem 0;
    margin: 0 1rem;
}

.planes button {
    border-bottom: none;
    margin: 1.5rem auto;
}

/* TÍTULO DEL PLAN */
.planes h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    background-color: #000;
    margin: 0;
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--accent);
    width: 100%;
}

.precio {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.planes p {
    color: var(--text-gray);
}

.planes button {
    background-color: var(--accent);
    color: #000000;
    font-weight: bold;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    width: 80%;
    transition: background 0.3s;
}

.planes button:hover {
    background-color: #fff;
}
/* FIN PLANES */


/* REDES Y FRASE */
/* SOBRE MÍ */
.sobre-mi {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    gap: 1.5rem;
}

.foto-perfil {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 15px rgba(95, 255, 160, 0.2);
}

.info-perfil h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.info-perfil p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}



.redes h3 {
    color: var(--text-white);
    font-size: 1.8rem;
    text-align: center;
    max-width: 80%;
    margin: 0rem 0 -1.5rem 0;
}

.redes h5.frase {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.redes h4 {
    color: var(--text-gray);
    font-size: 1.7rem;
    margin-bottom: -.5rem;
}

.redes p.ig {
    color: var(--text-white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.redes .ig a {
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.redes .ig a:hover {
    color: var(--accent);
}

.redes img {
    width: 30px;
    filter: invert(1); 
}
/* FIN REDES */


/***** FOOTER *****/
footer {
    background-color: #000;
    min-height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
}


/***** DISEÑOS DE ANIMACION *****/
@keyframes entrarDesdeDerecha {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/*Para los titulos*/
.animar-h2 {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animar-h2.visible {
    opacity: 1;
    transform: translateX(0);
}

/*Para los planes*/
.animar-plan {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animar-plan.visible {
    opacity: 1;
    transform: translateY(0);
}

.sec2 article:nth-child(2) { transition-delay: 0.1s; }
.sec2 article:nth-child(3) { transition-delay: 0.3s; }
.sec2 article:nth-child(4) { transition-delay: 0.5s; }

/*Margen de Scroll*/
section[id] {
    scroll-margin-top: 9rem; /* Ajustá este número según el alto de tu header */
}

/* ==========================================
   VERSION RESPONSIVE (TABLETS Y DESKTOP)
   ========================================== */

/* Tablets y pantallas medianas (768px en adelante) */
@media (min-width: 768px) {
    .inicio {
        background-position: center; /* Centramos la imagen de fondo */
        padding-left: 10%;
        min-height: 90vh;
    }

    .frase-inicio h2 { font-size: 3rem; }
    .frase-inicio span { font-size: 5rem; }

    /* Sección 1: Texto e imagen de lado a lado */
    .sec1 {
        padding: 6rem 5%;
    }

    .descripcion {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
        width: 100%;
        max-width: 1100px;
        text-align: left;
    }

    .descripcion h2 {
        text-align: left;
        min-width: 300px;
        font-size: 2rem;
    }

    /* Grilla de imágenes */
    .sec1 img, video {
        max-width: 800px;
    }

    /* Planes en 2 o 3 columnas */
    .sec2 {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .planes {
        width: calc(45% - 1rem); /* Dos columnas en tablets */
    }

    /* Sobre mí horizontal */
    .sobre-mi {
        flex-direction: row;
        justify-content: center;
        text-align: left;
        padding: 6rem 10%;
    }

    .foto-perfil {
        width: 250px;
        height: 250px;
    }
}

/* Pantallas grandes (1024px en adelante) */
@media (min-width: 1024px) {
    header {
        padding: 1rem 5%;
    }

    .inicio {
        background-attachment: fixed; /* Efecto Parallax suave */
    }

    .planes {
        width: 30%; /* Tres columnas en desktop */
        max-width: 350px;
    }
    
    .sec1 video {
        max-width: 30%;
    }
    /* Ajuste de navegación para que no dependa solo del menú lateral en PC */
    .lado-der::after {
        font-size: 0.7rem;
        color: var(--accent);
        letter-spacing: 1px;
    }
    /* 1. IMÁGENES UNA AL LADO DE LA OTRA */
    .sec1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    /* Creamos un contenedor implícito para las dos imágenes */
    /* Si las imágenes están sueltas en el HTML, este selector las agrupa visualmente */
    .sec1 img {
        width: 30%; /* Ocupan casi la mitad cada una */
        max-width: 500px;
        display: inline-block;
        margin: 0 10px;
    }

    /* 2. PLANES: TÍTULO ARRIBA Y CARTAS ABAJO */
    .sec2 {
        display: flex;
        flex-direction: row; /* Alineación horizontal */
        flex-wrap: wrap;    /* Permite que el título ocupe todo el ancho */
        justify-content: center;
        align-items: flex-start;
        padding: 6rem 2rem;
    }

    .sec2 h2 {
        width: 100%;        /* El título ocupa el 100% arriba */
        text-align: center;
        margin-bottom: 4rem; /* Espacio con los planes */
        font-size: 3.5rem;
    }

    .planes {
        width: 30%;         /* Tres planes, uno al lado del otro */
        max-width: 350px;
        margin: 0 1rem;     /* Espaciado lateral entre cartas */
    }

    /* 3. SOBRE MÍ (Opcional pero recomendado para PC) */
    .sobre-mi {
        flex-direction: row;
        text-align: left;
        gap: 4rem;
        padding: 5rem 10%;
    }
}