* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
}

/* CONTENEDOR GENERAL FIJO */
.menu-wrapper-fijo {
    position: fixed;
    top: 30px;
    left: 8%;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* CAJA FLOTANTE SÓLO PARA EL BOTÓN DE HAMBURGUESA */
.menu-pildora-container {
    position: relative;
    background-color: #000000;
    padding: 14px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    width: 28px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.barrita {
    width: 100%;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.activo .barrita:nth-child(1) {
    transform: translateY(7.75px) rotate(45deg);
}

.menu-toggle.activo .barrita:nth-child(2) {
    opacity: 0;
}

.menu-toggle.activo .barrita:nth-child(3) {
    transform: translateY(-7.75px) rotate(-45deg);
}

/* TOOLTIP EXTERNO (FLOTA LIBREMENTE A LA DERECHA) */
.tooltip-menu {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    white-space: nowrap;
    animation: desvanecimientoBucle 25s infinite ease-in-out;
    transition: opacity 0.3s ease;
}

/* Ocultar el tooltip si el menú está desplegado */
.menu-wrapper-fijo:has(.menu-toggle.activo) .tooltip-menu {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

.tooltip-contenido {
    display: flex;
    align-items: center;
    gap: 6px;
    animation: reboteHorizontal 1.2s infinite ease-in-out;
}

.tooltip-menu .flechita {
    font-size: 0.7rem;
    color: #000000;
}

/* MENÚ DESPLEGABLE DESDE LA CÁPSULA */
.menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: #000000;
    padding: 20px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 180px;
}

.menu-dropdown.activo {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-navegacion {
    list-style: none;
    text-align: left;
}

.menu-navegacion li {
    margin: 12px 0;
}

.menu-navegacion a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: block;
}

.menu-navegacion a:hover {
    opacity: 1;
    color: #0071e3;
}

/* SECCIÓN 1: INICIO PANTALLA COMPLETA */
.seccion-pantalla {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
}

.fondo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fondo-imagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('2ndtry.jpeg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fondo-atenuado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
}

/* CITA ANSEL ADAMS */
.cita-container {
    position: relative;
    z-index: 10;
    margin-left: 8%;
    max-width: 520px;
}

.cita-texto {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.5px;
    color: #f5f5f7;
    margin-bottom: 15px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.cita-autor {
    font-size: 1rem;
    font-weight: 400;
    color: #a1a1a6;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* BOTÓN DE ACCESO A PROYECTOS EN LA SECCIÓN DE CITA (INICIO) */
.boton-proyectos-cita {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 12px 22px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    animation: rafagaGlowBucle 10.5s infinite ease-in-out;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.boton-proyectos-cita .flechita-btn {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.boton-proyectos-cita:hover {
    background: #0071e3;
    border-color: #0071e3;
    color: #ffffff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 25px rgba(0, 113, 227, 0.85), 0 0 45px rgba(0, 113, 227, 0.35);
    animation: none;
}

.boton-proyectos-cita:hover .flechita-btn {
    transform: translateX(5px);
}

/* ANIMACIÓN DE ENFOQUE (AUTO-FOCUS) AL HACER SCROLL */
.efecto-enfoque-scroll {
    filter: blur(12px);
    opacity: 0;
    transform: translateY(20px);
    transition: filter 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.efecto-enfoque-scroll.enfocado {
    filter: blur(0px);
    opacity: 1;
    transform: translateY(0);
}

/* LOGOTIPO ABAJO */
.logo-abajo {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    max-width: 280px;
    pointer-events: none;
}

.logo-abajo img {
    width: 100%;
    height: auto;
    display: block;
}

/* SECCIONES DE CONTENIDO GENERAL (SOBRE MÍ Y CONTACTO) */
.seccion-contenido {
    width: 100%;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 8% 40px 8%;
    position: relative;
    z-index: 10;
}

.contenedor-texto {
    max-width: 66vw;
    width: 100%;
}

.contenedor-texto h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
    color: #0071e3;
}

.contenedor-texto p {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    color: #d1d1d6;
    margin-bottom: 24px;
    text-align: justify;
}

.contenedor-texto p strong {
    color: #ffffff;
    font-weight: 500;
}

.contenedor-texto p.postscriptum {
    font-size: 1rem;
    font-style: italic;
    color: #0071e3;
    margin-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    text-align: left;
}

/* SECCIÓN CONTACTO */
.seccion-contacto {
    padding-top: 40px;
    padding-bottom: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contacto-email-wrapper {
    margin-top: 25px;
}

.contacto-email {
    font-size: 1.8rem;
    font-weight: 300;
    color: #0071e3;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.contacto-email:hover {
    opacity: 0.8;
    transform: translateX(4px);
}

/* KEYFRAMES ANIMACIONES TOOLTIP Y RÁFAGAS GLOW */
/* CICLO DE 25s: 5s VISIBLE / 20s ESCONDIDO */
@keyframes desvanecimientoBucle {
    0% {
        opacity: 0;
        transform: scale(0.8) translateX(15px);
    }
    4% {
        opacity: 1;
        transform: scale(1) translateX(0); /* Entra y se hace visible a los 1s */
    }
    20% {
        opacity: 1;
        transform: scale(1) translateX(0); /* Permanece visible hasta los 5s */
    }
    24% {
        opacity: 0;
        transform: scale(0.8) translateX(15px); /* Se esconde completamente a los 6s */
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateX(15px); /* Se mantiene oculto durante los 19s restantes (20s en total) */
    }
}

@keyframes reboteHorizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-6px); }
}

/* RÁFAGA ESTILO HAMBURGUESA PARA BOTONES CON GLOW */
@keyframes rafagaGlowBucle {
    0% {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 0px transparent;
    }
    12% {
        border-color: rgba(0, 113, 227, 0.85);
        box-shadow: 0 0 20px rgba(0, 113, 227, 0.65), 0 0 40px rgba(0, 113, 227, 0.25);
    }
    28% {
        border-color: rgba(0, 113, 227, 0.85);
        box-shadow: 0 0 20px rgba(0, 113, 227, 0.65), 0 0 40px rgba(0, 113, 227, 0.25);
    }
    40%, 100% {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 0px transparent;
    }
}