/* || IMPORTAR FUENTES DE GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Open+Sans:wght@400;600&display=swap');

/* || VARIABLES */
:root {
    /* || VARIABLES DE COLORES */
    --color-primary-text: #222;
    --color-secondary-text: #7f8c8d;
    --color-background-body: #C4CFCC;
    --color-background-section: white;
    --color-background-navbar: rgba(40, 75, 99, 0.5);
    --color-background-navbar-solid: rgb(40, 75, 99);
    --color-heading: #2c3e50;
    --color-accent: #3498db;
    --color-light-gray: #ccc;
    --color-white: #FFFFFF;
    --color-white-yellow: #ebe592;
    --color-white-yellow-2: #99942f;
    --backgraund-color-black: #1e1e1e;

    /* || VARIABLE DE FONTS */
    --font-primary: 'Open Sans', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    /* || FONT SIZE */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-md: 1rem;
    /* 16px */
    --font-size-lg: 1.25rem;
    /* 20px */
    --font-size-xl: 1.5rem;
    /* 24px */

    /* || VARIABLE DE TAMAÑOS */
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 2rem;
    --spacing-nav: 1.5rem;

    /* || VARIABLE DE ESTILO */
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --text-shadow: 0 0px 10px rgba(198, 230, 56, 0.458);
}


/* || GENERAL */

body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
        "header header header header"
        "section1 section1 section1 section1"
        "section2 section2 section2 section2"
        "section3 section3 section3 section3"
        "footer footer footer footer";

    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--color-background-body);
    color: var(--color-primary-text);
    overflow-x: hidden;
}

/* || NAVBAR */

.navbar,
.dropdown-menu {
    background-color: var(--color-background-navbar);
}


.dropdown-menu {
    margin-top: 10px;
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    /* Muestra el menú al hacer hover */
    visibility: visible;
    /* Lo hace clickeable */
}

.dropdown-menu li a:hover,
.nav-links a:hover {
    background-color: transparent;
    color: var(--color-white-yellow);

}

.dropdown-bridge {
    position: absolute;
    top: 100%;
    /* justo debajo del botón */
    left: 0;
    width: 150px;
    /* ancho del puente */
    height: 100px;
    /* altura del puente */
    z-index: 9;
}


/* || MAIN */

header {
    background: url("../img/eduardo/eduardo_header.webp") no-repeat center top;
    background-size: cover;
    width: 100vw;
    height: 100vh;
    /* overflow-x: hidden; */
    background-position: top center;
    position: relative;
    grid-area: header;
}

.header-information {
    display: flex;
    justify-content: space-between;
    height: 100%;
}

.header-left {
    margin: 8rem 0.8rem;
    padding: 1.5rem 1rem;
    align-self: flex-end;
}

.name_edu {
    font-family: var(--font-primary);
    font-size: 4rem;
    margin: 0;
    color: var(--color-white-yellow);
}

.lastname_edu {
    font-family: var(--font-primary);
    font-size: 6rem;
    font-weight: bold;
    margin: 0;
    color: var(--color-white-yellow);

}

.header-right {
    margin: 3rem 0.8rem;
    padding: 1.5rem 1rem;
    align-self: center;
}


.city-container {
    position: relative;
    text-align: center;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.sun_icon {
    background: url("../img/eduardo/sun.webp") no-repeat center;
    background-size: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12rem;
    height: 12rem;
    animation: spin 10s linear infinite;
}


.city_edu {
    font-family: var(--font-primary);
    font-size: 3.2rem;
    font-weight: bold;
    margin: 0 0 3rem 0;
    color: var(--color-white);
    text-shadow: 0 0 10px var(--color-white-yellow-2);
    position: relative;
    z-index: 1;
}

.age_number {
    font-family: var(--font-primary);
    font-size: 8rem;
    font-weight: bold;
    margin: 6rem 4rem 10rem 0;
    color: var(--color-white-yellow);
}

.age_years {
    font-size: 4rem;
}

.main-top-container {
    grid-area: section1;
    padding-top: 100vh;
    box-sizing: border-box;
    background: url("../img/eduardo/eduardo_background_01.webp") no-repeat center/cover;
    background-position: top center;
    height: 100vh;
    width: 100vw;
}

.main-middle-container {
    grid-area: section2;
    background: url("../img/eduardo/eduardo_background_02.webp") no-repeat center/cover;
    background-position: top center;
    height: 100vh;
}

.main-bottom-container {
    grid-area: section3;
    background: url("../img/eduardo/eduardo_background_03.webp") no-repeat center/cover;
    background-position: top center;
    height: 100vh;
}

.footer {
    grid-area: footer;
    width: 100vw;
}

header,
.main-top-container,
.main-middle-container,
.main-bottom-container {
    background-color: rgba(20, 27, 20, 0.1);
    /* Capa negra translúcida */
    background-blend-mode: darken;
    /* Mezcla el color con la imagen */
}

/* || SECTIONS */

.section {
    padding: 1rem;
}

.section-title {
    margin-top: 0.8rem;
    font-weight: 500;
    /* text-shadow: var(--text-shadow); */
}


/* || SECTIONS / CARDS */

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 2rem 1rem;
}

.card {
    background-color: var(--color-background-section);
    color: var(--color-primary-text);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0.8rem;
    width: 20vw;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

.card-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.card p {
    font-weight: 600;
}

/* || ANIMACIONES */

.parallax-card {
    transition: transform 0.2s ease;
    transform-style: preserve-3d;
}




/* asegurar que las secciones sean contenedores posicionados */
header,
.main-top-container,
.main-middle-container,
.main-bottom-container {
    position: relative;
    overflow: visible;
    /* overflow: hidden; */
    /* si hay overflow:hidden puede cortar la sombra */
}

/* el wrapper que movemos */
.sea-wolf-wrap {
    --width-wolf: 35vh;
    --msg-offset: 12%;
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--width-wolf);
    /* ajustar según el png */
    /* pointer-events: none; */
    cursor: pointer;
    transform: translateX(-9999px);
    /* start fuera de pantalla; JS lo moverá */
    will-change: transform;
    z-index: 6;
    /* por debajo de las cards (if cards z-index > 6) */
    /* display: none; */
    /* overflow: hidden; */
}

.sea-wolf {
    display: block;
    position: absolute;
    bottom: 10px;
    width: 100%;
    height: auto;
    margin: 0;
    /* pointer-events: none; */
    cursor: pointer;
    filter: drop-shadow(0 15px 8px rgba(0, 0, 0, 0.5));
}


/* imagen que será el "reflejo" (bajo la imagen real) */
.sea-wolf-reflection {
    position: absolute;
    top: 100%;
    /* justo debajo de la imagen */
    left: 0;
    width: 100%;
    height: auto;
    transform: scaleY(-0.2);
    /* voltear verticalmente */
    transform-origin: top center;
    opacity: 0.1;
    filter: blur(4px) saturate(0.6) brightness(0.5);
    z-index: 1;
    /* detrás de la imagen real */
    pointer-events: none;
    margin-top: 90px;
    /* separación entre lobo y su reflejo */
}


.sea-wolf:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}


.wolf-message {
    position: absolute;
    bottom: 100%;
    /* encima del lobo */
    left: 55%;
    transform: translateX(-50%) translateY(-108%);
    width: calc(var(--width-wolf) * 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    /* sobre el lobo */
}

/* Mostrar el mensaje al hacer hover en el contenedor */
.sea-wolf-wrap:hover .wolf-message {
    opacity: 1;
}

.wolf-pack {
    background: url("../img/eduardo/grupo_lobos.webp") no-repeat center;
    background-size: contain;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--width-wolf) * 1.5);
    height: calc(var(--width-wolf) * 1.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: -1;
}

.wolf-pack.show {
    opacity: 1;
}


.star {
    position: fixed;
    top: -100px;
    /* width: 60px;*/
    pointer-events: none;
    opacity: 0.8;
    z-index: 9999;
    animation: fall linear forwards;
}

@keyframes fall {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    to {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}



/* || MEDIA QUERIES */

/* Móviles pequeños */

/* Teléfonos muy pequeños (375px o menos) */
@media screen and (max-width: 380px) {

    .navbar,
    .dropdown-menu {
        background-color: var(--color-background-navbar-solid);
    }

    .header-information {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 20rem;
        height: auto;
        /* que se ajuste al contenido */
    }

 
    h2 {
        font-size: 2rem;
    }

    .header-left,
    .header-right {
        margin: -2rem 0;
        padding-top: 0.5rem;
        align-self: center;
    }

    .name_edu {
        font-size: 2rem;
        color: var(--color-white);
    }

    .lastname_edu {
        font-size: 3rem;
        color: var(--color-white);
    }

    .city_edu {
        font-size: 2rem;
    }

    .sun_icon {
        width: 5rem;
        top: 40%;
        /* ajustar la posición del sol */
        left: 50%;
    }

    .age_number {
        font-size: 3rem;
        color: var(--color-white);
        margin-top: -2rem;
        margin-left: 5rem;
        text-align: center;
    }

    .age_years {
        font-size: 1.8rem;
        color: var(--color-white);
    }


    .card {
        padding: 0.5rem;
        width: 25vw;
    }

    body.modo-oscuro .nav-links {
        background-color: var(--color-background-navbar-solid);
    }
}

@media screen and (min-width: 381px) and (max-width: 400px) {

    .navbar,
    .dropdown-menu {
        background-color: var(--color-background-navbar-solid);
    }

    .header-information {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 30rem;
        height: auto;
        /* que se ajuste al contenido */
    }

 
    h2 {
        font-size: 2rem;
    }

    .header-left,
    .header-right {
        margin: -2rem 0;
        padding-top: 0.5rem;
        align-self: center;
    }

    .name_edu {
        font-size: 2rem;
        color: var(--color-white);
    }

    .lastname_edu {
        font-size: 3rem;
        color: var(--color-white);
    }

    .city_edu {
        font-size: 2rem;
    }

    .sun_icon {
        width: 5rem;
        top: 40%;
        /* ajustar la posición del sol */
        left: 50%;
    }

    .age_number {
        font-size: 3rem;
        color: var(--color-white);
        margin-top: -2rem;
        margin-left: 5rem;
        text-align: center;
    }

    .age_years {
        font-size: 1.8rem;
        color: var(--color-white);
    }


    .card {
        padding: 0.5rem;
        width: 25vw;
    }

    body.modo-oscuro .nav-links {
        background-color: var(--color-background-navbar-solid);
    }

}

@media screen and (min-width: 401px) and (max-width: 600px) {

    .navbar,
    .dropdown-menu {
        background-color: var(--color-background-navbar-solid);
    }

    .header-information {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 40rem;
        height: auto;
    }

    h2 {
        font-size: 2rem;
    }

    .header-left,
    .header-right {
        margin: -8rem 0;
        padding-top: 5rem;
        align-self: center;
    }

    .name_edu {
        font-size: 2.5rem;
        color: var(--color-white);
    }

    .lastname_edu {
        font-size: 3.5rem;
        color: var(--color-white);
    }

    .city_edu {
        font-size: 2.2rem;
    }

    .sun_icon {
        width: 8rem;
        top: 45%;
        left: 50%;
    }

    .age_number {
        font-size: 3.5rem;
        color: var(--color-white);
        margin-top: -1rem;
        margin-left: 5rem;
        text-align: center;
    }

    .age_years {
        font-size: 1.9rem;
        color: var(--color-white);
    }

    .section-title h2 {
        font-size: 3rem;
    }

    .card {
        width: 25vw;
        padding: 0.5rem;
    }

    body.modo-oscuro .nav-links {
        background-color: var(--color-background-navbar-solid);
    }

}


@media screen and (min-width: 601px) and (max-width: 900px) {

    .navbar,
    .dropdown-menu {
        background-color: var(--color-background-navbar-solid);
    }

    .header-information {
        flex-direction: row;
        justify-content: center;
        align-items: flex-end;
        height: 100vh;
        padding-bottom: 6rem;
    }


    .header-left,
    .header-right,
    .age_number {
        align-self: auto;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .name_edu {
        font-size: 3rem;
        color: var(--color-white);
    }

    .lastname_edu {
        font-size: 4.5rem;
        color: var(--color-white);
    }

    .city_edu {
        font-size: 2.5rem;
    }

    .sun_icon {
        width: 8rem;
    }

    .age_number {
        font-size: 4rem;
        color: var(--color-white);
    }

    .age_years {
        font-size: 2rem;
        color: var(--color-white);
    }

    .card {
        width: 25vw;
        padding: 0.5rem;
    }

    body.modo-oscuro .nav-links {
        background-color: var(--color-background-navbar-solid);
    }

}


/* Escritorio grande */
/* @media screen and (min-width: 1200px) {
    .header-information {
        flex-direction: row;
        justify-content: space-between;
    }

    .name_edu {
        font-size: 4rem;
    }

    .lastname_edu {
        font-size: 6rem;
    }

    .city_edu {
        font-size: 3.2rem;
    }

    .sun_icon {
        width: 12rem;
    }

    .age_number {
        font-size: 8rem;
    }

    .age_years {
        font-size: 4rem;
    }
} */

/* Modo oscuro */


#modoOscuroBtn {
    margin: 10px 10px;
    border: none;
    width: 60px;
    height: 40px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 10px;
    font-size: 20px;
    transition: background-color 0.3s ease;
}


/* Cambiar imágenes en modo oscuro */
body.modo-oscuro header {
    background: url("../img/eduardo/eduardo_header_dark.webp") no-repeat center top;
    background-size: cover;
}

body.modo-oscuro .main-top-container {
    background: url("../img/eduardo/eduardo_background_01_dark.webp") no-repeat center/cover;
}

body.modo-oscuro .main-middle-container {
    background: url("../img/eduardo/eduardo_background_02_dark.webp") no-repeat center/cover;
}

body.modo-oscuro .main-bottom-container {
    background: url("../img/eduardo/eduardo_background_03_dark.webp") no-repeat center/cover;
}


body.modo-oscuro .sun_icon {
    background: url("../img/eduardo/moon.webp") no-repeat center;
    background-size: contain;
}

body.modo-oscuro .card {
    background-color: var(--backgraund-color-black);
}

body.modo-oscuro .footer {
    background-color: var(--color-background-navbar-solid);
}

body.modo-oscuro .footer p {
    color: var(--color-white);
}


body.modo-oscuro .logo {
    filter: none;
}

body.modo-oscuro .nav-links a {
    color: var(--color-white);
}

body.modo-oscuro .nav-links a:hover {
    color: var(--color-white-yellow);
}

body.modo-oscuro .menu-toggle {
    color: var(--color-white);
}

body.modo-oscuro .wolf-pack {
    background: url("../img/eduardo/grupo_lobos_dark.webp") no-repeat center;
    background-size: contain;
}