/* style.css - Hojas de Estilo de Alta Gama Dr. Antonio Saltarín */

@import url('variables.css');

/* -------------------------------------------------------------
   1. RESET Y ESTILOS BASE CON TEXTURAS DE FONDO
------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Dotted Grid Pattern + Hero Gradient */
    background-image: 
        var(--gradient-hero), 
        radial-gradient(rgba(255, 255, 255, 0.02) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 40px 40px;
    background-repeat: no-repeat, repeat;
    background-position: top center, center center;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #0f1423;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

/* Tipografía Avanzada */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-pure);
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -------------------------------------------------------------
   2. COMPONENTES Y UTILIDADES PREMIUM
------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 16px auto 0;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
    font-weight: 400;
}

/* Badges Neón */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.badge-primary {
    background: rgba(239, 68, 68, 0.08);
    color: var(--color-primary);
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.05);
}

.badge-gold {
    background: rgba(217, 119, 6, 0.08);
    color: #fbbf24;
    border-color: rgba(217, 119, 6, 0.25);
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.05);
}

/* Botones Premium con Glows */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
    gap: 12px;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-pure);
    box-shadow: 0 4px 25px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(239, 68, 68, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-pure);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--bg-main);
    box-shadow: 0 4px 25px rgba(217, 119, 6, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(217, 119, 6, 0.5);
}

/* Tarjetas Glassmorphism de Nivel Superior */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    z-index: -1;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-glass-active);
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.08);
}

.glass-card:hover::before {
    background: linear-gradient(135deg, rgba(239,68,68,0.1), transparent);
}

/* -------------------------------------------------------------
   3. CABECERA Y NAVEGACIÓN
------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 24px 0;
}

.header.scrolled {
    padding: 14px 0;
    background-color: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Rediseño Logo SVG */
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-svg-wrapper {
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-heart {
    animation: heartbeat 2.5s infinite ease-in-out;
}

.logo-ekg {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw-ekg 4s infinite linear;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1) translate(0, 0); }
    10% { transform: scale(1.08) translate(-1px, -1px); }
    20% { transform: scale(1) translate(0, 0); }
    30% { transform: scale(1.08) translate(-1px, -1px); }
    40% { transform: scale(1) translate(0, 0); }
}

@keyframes draw-ekg {
    0% { stroke-dashoffset: 400; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -400; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-pure);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-pure);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-pure);
    font-size: 1.8rem;
    cursor: pointer;
}

/* -------------------------------------------------------------
   4. SECCIÓN HERO DE ALTO IMPACTO (GLOWS)
------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.1;
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span.glow-accent {
    background: var(--gradient-text-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.25);
}

.hero-title span.gold-glow {
    background: var(--gradient-text-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(217, 119, 6, 0.25);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 44px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Efecto de Marco de Resonancia y Glows */
.hero-image-frame {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    position: relative;
    padding: 6px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.5) 0%, rgba(217, 119, 6, 0.5) 100%);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    z-index: 5;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    width: calc(100% + 50px);
    height: calc(100% + 50px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: calc(var(--radius-lg) + 16px);
    z-index: -1;
}

.hero-image-frame img {
    border-radius: calc(var(--radius-lg) - 6px);
    object-fit: cover;
    object-position: 35% center;
    width: 100%;
    height: 500px;
    filter: brightness(0.95) contrast(1.05);
}

/* Resplandores del Fondo */
.hero-glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: var(--radius-full);
    background: rgba(239, 68, 68, 0.08);
    filter: blur(120px);
    top: -100px;
    right: -100px;
    z-index: 1;
}

.hero-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: var(--radius-full);
    background: rgba(217, 119, 6, 0.06);
    filter: blur(120px);
    bottom: -150px;
    left: -150px;
    z-index: 1;
}

/* -------------------------------------------------------------
   5. SECCIÓN LOGOS (SOCIAL PROOF INTEGRADO)
------------------------------------------------------------- */
.partners {
    padding: 60px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background-color: rgba(10, 14, 26, 0.4);
    position: relative;
    z-index: 10;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
}

.partner-item {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.partner-item:hover {
    opacity: 0.9;
    color: var(--text-pure);
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.partner-item svg, .partner-item i {
    font-size: 1.3rem;
}

/* -------------------------------------------------------------
   6. BIOGRAFÍA Y MÉRITOS (SOBRE MÍ)
------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: start;
}

.about-info h3 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.highlight-card {
    padding: 30px;
    border: 1px solid var(--border-glass);
}

.highlight-number {
    font-size: 3.2rem;
    font-weight: 800;
    font-family: var(--font-title);
    background: var(--gradient-text-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.highlight-number i {
    background: var(--gradient-text-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.highlight-label {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-pure);
    margin-bottom: 6px;
    font-family: var(--font-title);
}

.highlight-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-credentials {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.credential-item {
    display: flex;
    gap: 24px;
    padding: 28px;
}

.credential-icon {
    font-size: 2rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px var(--color-primary-glow));
}

.credential-content h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-pure);
    font-family: var(--font-title);
}

.credential-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   7. SERVICIOS (TARJETAS DINÁMICAS DE GAMA ALTA)
------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--color-primary);
    font-size: 2rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--text-pure);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
    border-color: transparent;
}

.service-card h3 {
    font-size: 1.45rem;
    margin-bottom: 16px;
    font-family: var(--font-title);
}

.service-card p {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-list li i {
    color: var(--color-primary);
    font-size: 0.85rem;
}

/* -------------------------------------------------------------
   8. PUBLICACIONES CIENTÍFICAS E INVESTIGACIÓN
------------------------------------------------------------- */
.research-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.research-column-title {
    font-size: 2rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-title);
}

.research-column-title i {
    color: var(--color-primary);
}

.research-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.research-card {
    padding: 36px;
    border: 1px solid var(--border-glass);
}

.research-card:hover {
    border-color: var(--color-primary-glow);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.05);
}

.research-tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.research-card h4 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-pure);
    font-family: var(--font-title);
}

.research-authors {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

.research-authors strong {
    color: var(--text-pure);
}

.research-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.research-journal {
    font-weight: 700;
    color: var(--text-pure);
}

/* -------------------------------------------------------------
   9. GALERÍA DE FOTOS INTERACTIVA (GRID MASÓNICO)
------------------------------------------------------------- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-title);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--text-pure);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-pure);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(2, 4, 10, 0.95) 0%, rgba(2, 4, 10, 0.4) 60%, rgba(2, 4, 10, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-pure);
    margin-bottom: 6px;
}

.gallery-item-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    font-weight: 700;
}

/* Lightbox de Expansión */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 4, 10, 0.97);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 70px rgba(0,0,0,0.8);
    border: 1px solid var(--border-glass);
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-pure);
    font-size: 2.5rem;
    cursor: pointer;
}

.lightbox-caption {
    text-align: center;
    margin-top: 20px;
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: var(--text-pure);
}

/* -------------------------------------------------------------
   10. CONTACTO Y FORMULARIO DE AGENDAMIENTO
------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-card-title {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.contact-card-desc {
    color: var(--text-muted);
    margin-bottom: 50px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-bottom: 50px;
}

.contact-detail-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-detail-content h5 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-pure);
    font-family: var(--font-title);
}

.contact-detail-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    white-space: pre-line;
}

.contact-socials {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--text-pure);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* Estilo del Formulario Superior */
.booking-form-wrapper {
    padding: 48px;
    border: 1px solid var(--border-glass);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-input {
    background: rgba(2, 4, 10, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--text-pure);
    font-family: var(--font-body);
    font-size: 0.98rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
    background-color: rgba(2, 4, 10, 0.9);
}

.form-input::placeholder {
    color: #475569;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f43f5e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 48px;
}

select.form-input option {
    background-color: var(--bg-surface);
    color: var(--text-pure);
}

/* Modal de Éxito */
.success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 480px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass-active);
    border-radius: var(--radius-lg);
    box-shadow: 0 35px 75px rgba(0,0,0,0.8);
    padding: 48px;
    text-align: center;
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: var(--transition-smooth);
}

.success-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.success-icon {
    width: 76px;
    height: 76px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 28px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.success-modal h4 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.success-modal p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 36px;
}

/* -------------------------------------------------------------
   11. PIE DE PÁGINA (FOOTER)
------------------------------------------------------------- */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-glass);
    background-color: #02040a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 1.3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h5 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--text-pure);
    font-family: var(--font-title);
}

.footer-about p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 320px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer-contact p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact p i {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.legal-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.legal-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.legal-links a:hover {
    color: var(--color-primary);
}

/* -------------------------------------------------------------
   12. BOTÓN DE WHATSAPP FLOTANTE
------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.12) rotate(8deg);
    box-shadow: 0 18px 35px rgba(37, 211, 102, 0.5);
}

/* -------------------------------------------------------------
   13. ESTILOS DE ANIMACIÓN DE ENTRADA (IntersectionObserver)
------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------
   14. RESPONSIVE DESIGN (MEDIA QUERIES)
------------------------------------------------------------- */
@media (max-width: 992px) {
    .section {
        padding: 90px 0;
    }
    
    .hero {
        padding-top: 130px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-frame {
        max-width: 350px;
    }

    .hero-image-frame img {
        height: 440px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .research-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-about p {
        margin: 20px auto 0;
    }
    
    .footer-contact p {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        border-bottom: 1px solid var(--border-glass);
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .booking-form-wrapper {
        padding: 32px;
    }

    .form-group-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .whatsapp-float {
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
    }
}
