/*
Theme Name: Podólogo Málaga
Author: Dr. Jativa Team
Description: Tema personalizado para Podólogo en Málaga - Premium Design
Version: 4.0 - New Header + Montage Hero Design
*/

:root {
    --primary-blue: #002B49;
    /* Azul Marino Oscuro */
    --secondary-blue: #004e92;
    /* Azul medio para gradiente */
    --accent-blue: #6dd5fa;
    /* Azul claro para detalles y botones */
    --white: #ffffff;
    --light-beige: #F7F5F0;
    /* Para fondos muy claros */
    --text-dark: #333333;
    --text-light: #555555;
    --doctoralia-green: #00CCB1;
    --cta-orange: #ff7f50;
    /* Naranja del botón CTA */
    --cta-orange-hover: #ff6347;
    /* Naranja más oscuro para hover */
}

/* Importar Google Fonts existentes */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;600;700;800&family=Playfair+Display:wght@400;700;800&display=swap');

/* Declaración de Audiowide para uso local */
@font-face {
    font-family: 'Audiowide';
    /* Nombre que usaremos en CSS */
    src: url('assets/fonts/Audiowide-Regular.woff2') format('woff2'),
        url('assets/fonts/Audiowide-Regular.woff') format('woff'),
        /* <-- COMA AÑADIDA AQUÍ */
        url('assets/fonts/Audiowide-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* RESET */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--white);
    overflow-x: hidden;
    /* Previene scroll horizontal */
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    /* <--- AÑADIDO: Empujamos todo el contenido hacia abajo para que no quede tapado por el header fijo */
    padding-top: 70px;
    /* He calculado unos 130px basándome en tu logo y padding actual */
}

body.is-loading {
    overflow: hidden !important;
    height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    /* Usamos Playfair para los títulos principales */
    color: var(--primary-blue);
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4,
h5,
h6 {
    font-family: 'Lato', sans-serif;
    /* Lato para subtítulos y headers menores */
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 700;
}

/* ==================================
   HEADER BLANCO (Nuevo Diseño)
   ================================== */
.site-header-white {
    background-color: var(--white);
    /* Padding inicial generoso para que respire al entrar */
    padding: 0.4rem 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Transición suave para el cambio de tamaño */
    transition: all 0.3s ease-in-out;
}

.header-flex-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* <--- CAMBIO IMPORTANTE: Aumentamos el espacio horizontal entre logo, menú y botón */
    gap: 40px;
    /* Antes era 20px. Esto separará los elementos. */
}

/* Logo (Contenedor de Icono y Texto) */
.header-branding {
    padding-top: 21px;
    flex-shrink: 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    /* Espacio entre el icono del pie y el texto */
    gap: 15px;
    text-decoration: none;
    color: var(--primary-blue);
    line-height: 1;
}

/* Estilos para el icono circular del pie */
.header-logo-icon {
    padding-top: 30px;
    height: 70px;
    width: auto;
    flex-shrink: 0;
}

/* Contenedor del texto del logo */
.site-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 1;
}

/* Estilos para el texto principal del logo */
.site-title-text {
    font-family: 'Audiowide', sans-serif;
    font-weight: normal;
    font-size: 1.3rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-blue);
    white-space: nowrap;
}

/* Estilos para el subtítulo del logo */
.site-tagline-text {
    font-family: 'Audiowide', sans-serif;
    font-weight: normal;
    font-size: 0.7em;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 5px;
    white-space: nowrap;
}


/* Botón CTA (Contactanos) */
.header-cta-wrapper {
    padding-top: 30px;
    flex-shrink: 0;
    margin-left: auto;
    display: block;
}

.btn-header-orange {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--cta-orange);
    color: var(--white);
    border: none;
    box-shadow: 0 5px 15px rgba(255, 127, 80, 0.3);
}

.btn-header-orange:hover {
    background: var(--cta-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 127, 80, 0.4);
}

/* ==================================
   EFECTO HEADER "STICKY" ENCOGIDO
   ================================== */

/* 1. Añadir transiciones suaves a los elementos base */
/* Esto es crucial para que el cambio de tamaño se vea elegante y no de golpe */
.site-header-white,
.header-logo-icon,
.site-title-text,
.site-tagline-text,
.main-navigation-menu a,
.btn-header-orange {
    transition: all 0.3s ease-in-out;
}

/* 2. Estilos cuando el header está en modo "scrolled" (encogido) */

/* Reducimos el padding vertical del contenedor principal */
.site-header-white.header-scrolled {
    padding: 0.4rem 0;
    /* Reduce el espacio arriba y abajo */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* Sombra un poco más pronunciada */
}

/* Reducimos drásticamente el tamaño del icono del logo */
.header-scrolled .header-logo-icon {
    height: 60px;
    /* Pasa de 100px a 60px */
}

/* Opcional: Reducir ligeramente el texto del logo para acompañar */
.header-scrolled .site-title-text {
    font-size: 1rem;
    /* Un poco más pequeño */
}

.header-scrolled .site-tagline-text {
    font-size: 0.5rem;
    margin-top: 2px;
}

/* Opcional: Ajustar un poco los enlaces del menú y el botón */
.header-scrolled .main-navigation-menu a {
    padding: 1rem 0;
    /* Ajuste fino del área clickable */
    font-size: 0.8rem;
}

.header-scrolled .btn-header-orange {
    padding: 8px 20px;
    font-size: 0.7rem;
}


/* --- AJUSTES RESPONSIVE PARA EL HEADER ENCOGIDO --- */

/* En tablets (max-width: 1024px) */
@media (max-width: 1024px) {

    /* El logo ya era más pequeño aquí (60px), lo reducimos a 50px al hacer scroll */
    .header-scrolled .header-logo-icon {
        height: 50px;
    }
}

/* En móviles (max-width: 768px) */
@media (max-width: 768px) {

    /* El logo era de 50px, lo bajamos a 40px */
    .header-scrolled .header-logo-icon {
        height: 40px;
    }

    /* En móvil el padding original es menor, ajustamos el scrolled */
    .site-header-white.header-scrolled {
        padding: 0.5rem 0;
    }

    /* Aseguramos que el menú hamburguesa/enlaces se mantengan compactos */
    .header-scrolled .header-flex-layout {
        padding: 0.5rem 0;
        gap: 10px;
    }
}

/* ==================================
    INTRO ANIMATION
    ================================== */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    opacity: 1;
}

.intro-vignette {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transform-origin: center center;
    will-change: transform, opacity;
}

.intro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3);
    will-change: transform;
}


/* ==================================
    HERO BANNER PRINCIPAL (Banda Azul con Doctor)
    ================================== */
.hero-main-blue-band {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    overflow: hidden;
    position: relative;
    padding: 0;
}

.hero-band-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 550px;
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-text-area {
    flex: 1;
    max-width: 55%;
    z-index: 2;
}

.hero-text-subtitle {
    color: var(--accent-blue);
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-text-title {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-family: 'Playfair Display', serif;
}

.hero-text-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.hero-action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Estilos de botones dentro del HERO */
.btn-primary-blue {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
    margin-bottom: 0rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent-blue);
    color: var(--primary-blue);
    border: 2px solid var(--accent-blue);
}

.btn-primary-blue:hover {
    background: var(--white);
    border-color: var(--white);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-blue);
}


.hero-photo-area {
    flex: 0 0 auto;
    width: 45%;
    height: 100%;
    position: absolute;
    right: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-photo-area img {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: top center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

/* ==================================
    SERVICES SECTION
    ================================== */
.services {
    background: var(--white);
    padding: 6rem 0;
}

.services .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card h3 {
    color: var(--primary-blue);
    padding: 1.5rem;
    margin: 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    flex-grow: 1;
}

/* ==================================
    CLINICS SECTION
    ================================== */
.locations {
    background: var(--primary-blue);
    padding: 6rem 0;
    text-align: center;
}

.locations .section-title {
    color: var(--white);
}

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

/* Estilos de la tarjeta (es un enlace <a>) */
.clinic-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    /* Esencial para recortar la imagen con zoom */
    height: 380px;
    /* Altura fija un poco mayor para acomodar el nuevo texto */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

/* Imagen de fondo */
.clinic-card img.clinic-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    /* NUEVO: Empezar con un ligero ZOOM */
    transform: scale(1.1);
}

/* Efecto ZOOM OUT al pasar el ratón por encima */
.clinic-card:hover img.clinic-bg {
    /* NUEVO: Volver al tamaño original (zoom out) */
    transform: scale(1.0);
}

/* Capa superpuesta con texto */
.clinic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    /* Gradiente más oscuro y alto para cubrir el texto */
    background: linear-gradient(to top, rgba(0, 43, 73, 0.95) 20%, transparent);
    color: var(--white);
    text-align: left;
    transition: all 0.3s ease;
    /* Usamos flex para organizar el contenido verticalmente */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Estilos del texto interno */
.clinic-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.clinic-overlay p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
    color: #eee;
}

/* NUEVO: Estilo para el texto "VER EN MAPA" */
.clinic-overlay .ver-mapa {
    color: var(--doctoralia-green);
    /* Color verde */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-top: 1rem;
    /* Separación del texto de arriba */
    display: inline-block;
}

/* ==================================
    TESTIMONIALS SECTION
    ================================== */
.testimonials {
    background-color: var(--white);
    padding: 6rem 0;
}

.testimonial-slider {
    padding-bottom: 0;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--doctoralia-green);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .stars {
    color: var(--doctoralia-green);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #333;
    flex-grow: 1;
    text-align: justify;
}

.testimonial-card .author {
    font-style: normal;
    color: var(--primary-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.btn-doctoralia {
    background-color: var(--doctoralia-green);
    color: #fff;
    border: 2px solid var(--doctoralia-green);
    box-shadow: 0 4px 10px rgba(0, 204, 177, 0.3);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-doctoralia:hover {
    background-color: #fff;
    color: var(--doctoralia-green);
    box-shadow: 0 6px 15px rgba(0, 204, 177, 0.4);
    transform: translateY(-2px);
}

/* ==================================
    FOOTER
    ================================== */
footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    color: var(--light-beige);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col a:hover {
    color: var(--doctoralia-green);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

/* --- CÓDIGO CORRECTO PARA REEMPLAZAR EL ANTERIOR --- */
.social-icon:hover {
    background: var(--doctoralia-green);
    /* Fondo verde */
    color: var(--white);
    /* Icono blanco */
    transform: translateY(-3px);
    /* Pequeño salto hacia arriba */
    box-shadow: 0 5px 15px rgba(0, 204, 177, 0.3);
    /* Sombra verde suave */
    text-decoration: none;
    /* Aseguramos que no haya subrayados */
}

/* Imagen de fondo */
.clinic-card img.clinic-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    /* NUEVO: Empezar con un ligero ZOOM */
    transform: scale(1.1);
}

/* Efecto ZOOM OUT al pasar el ratón por encima */
.clinic-card:hover img.clinic-bg {
    /* NUEVO: Volver al tamaño original (zoom out) */
    transform: scale(1.0);
}

/* Capa superpuesta con texto */
.clinic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    /* Gradiente más oscuro y alto para cubrir el texto */
    background: linear-gradient(to top, rgba(0, 43, 73, 0.95) 20%, transparent);
    color: var(--white);
    text-align: left;
    transition: all 0.3s ease;
    /* Usamos flex para organizar el contenido verticalmente */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Estilos del texto interno */
.clinic-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.clinic-overlay p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
    color: #eee;
}

/* NUEVO: Estilo para el texto "VER EN MAPA" */
.clinic-overlay .ver-mapa {
    color: var(--doctoralia-green);
    /* Color verde */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-top: 1rem;
    /* Separación del texto de arriba */
    display: inline-block;
}

/* ==================================
    TESTIMONIALS SECTION
    ================================== */
.testimonials {
    background-color: var(--white);
    padding: 6rem 0;
}

.testimonial-slider {
    padding-bottom: 0;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--doctoralia-green);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .stars {
    color: var(--doctoralia-green);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #333;
    flex-grow: 1;
    text-align: justify;
}

.testimonial-card .author {
    font-style: normal;
    color: var(--primary-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.btn-doctoralia {
    background-color: var(--doctoralia-green);
    color: #fff;
    border: 2px solid var(--doctoralia-green);
    box-shadow: 0 4px 10px rgba(0, 204, 177, 0.3);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-doctoralia:hover {
    background-color: #fff;
    color: var(--doctoralia-green);
    box-shadow: 0 6px 15px rgba(0, 204, 177, 0.4);
    transform: translateY(-2px);
}

/* ==================================
    FOOTER
    ================================== */
footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    color: var(--light-beige);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col a:hover {
    color: var(--doctoralia-green);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--doctoralia-green);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==================================
    RESPONSIVE DESIGN (Media Queries)
    Escalado proporcional basado en valores originales
    ================================== */

/* TABLETS GRANDES y Desktops pequeños (1025px - 1200px) */
@media (max-width: 1200px) and (min-width: 1025px) {

    /* Escalado al 90% del original */
    .header-flex-layout {
        gap: 36px;
        /* 40px * 0.9 */
    }

    .logo-wrapper {
        gap: 13.5px;
        /* 15px * 0.9 */
    }

    .header-logo-icon {
        height: 63px;
        /* 70px * 0.9 */
    }

    .site-title-text {
        font-size: 1.17rem;
        /* 1.3rem * 0.9 */
        letter-spacing: 1.8px;
        /* 2px * 0.9 */
    }

    .site-tagline-text {
        font-size: 0.63em;
        /* 0.7em * 0.9 */
        letter-spacing: 4.5px;
        /* 5px * 0.9 */
        margin-top: 4.5px;
        /* 5px * 0.9 */
    }

    .btn-header-orange {
        font-size: 0.72rem;
        /* 0.8rem * 0.9 */
        padding: 7.2px 18px;
        /* 8px 20px * 0.9 */
    }

    /* Header scrolled - también escalado */
    .header-scrolled .header-logo-icon {
        height: 54px;
        /* 60px * 0.9 */
    }

    .header-scrolled .site-title-text {
        font-size: 0.9rem;
        /* 1rem * 0.9 */
    }
}

/* TABLETS MEDIANAS (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {

    /* Escalado al 80% del original */
    .header-branding {
        padding-top: 16px;
        /* 20px * 0.8 */
    }

    .header-flex-layout {
        gap: 32px;
        /* 40px * 0.8 */
    }

    .logo-wrapper {
        gap: 12px;
        /* 15px * 0.8 */
    }

    .header-logo-icon {
        padding-top: 5.6px;
        /* 7px * 0.8 */
        height: 56px;
        /* 70px * 0.8 */
    }

    .site-title-text {
        font-size: 1.04rem;
        /* 1.3rem * 0.8 */
        letter-spacing: 1.6px;
        /* 2px * 0.8 */
    }

    .site-tagline-text {
        font-size: 0.56em;
        /* 0.7em * 0.8 */
        letter-spacing: 4px;
        /* 5px * 0.8 */
        margin-top: 4px;
        /* 5px * 0.8 */
    }

    .header-cta-wrapper {
        padding-top: 24px;
        /* 30px * 0.8 */
    }

    .btn-header-orange {
        font-size: 0.64rem;
        /* 0.8rem * 0.8 */
        padding: 6.4px 16px;
        /* 8px 20px * 0.8 */
    }

    /* Header scrolled */
    .header-scrolled .header-logo-icon {
        height: 48px;
        /* 60px * 0.8 */
    }

    .header-scrolled .site-title-text {
        font-size: 0.8rem;
        /* 1rem * 0.8 */
    }

    .header-scrolled .site-tagline-text {
        font-size: 0.56rem;
        /* 0.7rem * 0.8 */
    }

    /* Hero y otras secciones */
    .hero-band-content {
        min-height: 440px;
        /* 550px * 0.8 */
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .services .grid,
    .locations .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* TABLETS PEQUEÑAS (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {

    /* Escalado al 65% del original */
    .site-header-white {
        padding: 0.6rem 0;
        /* Aumentado ligeramente para móvil */
    }

    .header-branding {
        padding-top: 13px;
        /* 20px * 0.65 */
    }

    .header-flex-layout {
        flex-direction: column;
        gap: 26px;
        /* 40px * 0.65 */
        padding: 0.8rem 0;
    }

    .logo-wrapper {
        gap: 9.75px;
        /* 15px * 0.65 */
        justify-content: center;
    }

    .header-logo-icon {
        padding-top: 4.55px;
        /* 7px * 0.65 */
        height: 45.5px;
        /* 70px * 0.65 */
    }

    .site-title-text {
        font-size: 0.845rem;
        /* 1.3rem * 0.65 */
        letter-spacing: 1.3px;
        /* 2px * 0.65 */
    }

    .site-tagline-text {
        font-size: 0.455em;
        /* 0.7em * 0.65 */
        letter-spacing: 3.25px;
        /* 5px * 0.65 */
        margin-top: 3.25px;
        /* 5px * 0.65 */
    }

    .header-cta-wrapper {
        padding-top: 19.5px;
        /* 30px * 0.65 */
        width: 100%;
        text-align: center;
    }

    .btn-header-orange {
        font-size: 0.52rem;
        /* 0.8rem * 0.65 */
        padding: 5.2px 13px;
        /* 8px 20px * 0.65 */
        display: inline-block;
        width: auto;
        max-width: 240px;
    }

    /* Navegación apilada en móvil */
    .main-navigation-menu {
        width: 100%;
    }

    .nav-links-row {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .main-navigation-menu a {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .main-navigation-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding: 0.4rem 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Header scrolled */
    .header-scrolled {
        padding: 0.3rem 0;
    }

    .header-scrolled .header-logo-icon {
        height: 39px;
        /* 60px * 0.65 */
    }

    .header-scrolled .site-title-text {
        font-size: 0.65rem;
        /* 1rem * 0.65 */
    }

    .header-scrolled .site-tagline-text {
        font-size: 0.455rem;
        /* 0.7rem * 0.65 */
    }

    /* Hero Banner */
    .hero-band-content {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 0;
    }

    .hero-text-area {
        max-width: 100%;
        padding: 0 0 2rem;
    }

    .hero-photo-area {
        position: relative;
        width: 100%;
        height: 357.5px;
        /* 550px * 0.65 */
    }

    .hero-photo-area img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center bottom;
    }

    /* Secciones */
    section {
        padding: 4rem 0;
    }

    .services .grid,
    .locations .grid {
        grid-template-columns: 1fr;
    }
}

/* MÓVILES (max-width: 480px) */
@media (max-width: 480px) {

    /* Escalado al 55% del original */
    .site-header-white {
        padding: 0.5rem 0;
    }

    .header-branding {
        padding-top: 11px;
        /* 20px * 0.55 */
    }

    .header-flex-layout {
        flex-direction: column;
        gap: 22px;
        /* 40px * 0.55 */
        padding: 0.6rem 0;
    }

    .logo-wrapper {
        gap: 8.25px;
        /* 15px * 0.55 */
        justify-content: center;
    }

    .header-logo-icon {
        padding-top: 3.85px;
        /* 7px * 0.55 */
        height: 38.5px;
        /* 70px * 0.55 */
    }

    .site-title-text {
        font-size: 0.715rem;
        /* 1.3rem * 0.55 */
        letter-spacing: 1.1px;
        /* 2px * 0.55 */
    }

    .site-tagline-text {
        font-size: 0.385em;
        /* 0.7em * 0.55 */
        letter-spacing: 2.75px;
        /* 5px * 0.55 */
        margin-top: 2.75px;
        /* 5px * 0.55 */
    }

    .header-cta-wrapper {
        padding-top: 16.5px;
        /* 30px * 0.55 */
        width: 100%;
        text-align: center;
    }

    .btn-header-orange {
        font-size: 0.44rem;
        /* 0.8rem * 0.55 */
        padding: 4.4px 11px;
        /* 8px 20px * 0.55 */
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    /* Navegación */
    .main-navigation-menu {
        width: 100%;
    }

    .nav-links-row {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .main-navigation-menu a {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }

    /* Header scrolled */
    .header-scrolled {
        padding: 0.25rem 0;
    }

    .header-scrolled .header-logo-icon {
        height: 33px;
        /* 60px * 0.55 */
    }

    .header-scrolled .site-title-text {
        font-size: 0.55rem;
        /* 1rem * 0.55 */
    }

    .header-scrolled .site-tagline-text {
        font-size: 0.385rem;
        /* 0.7rem * 0.55 */
    }

    .header-scrolled .btn-header-orange {
        font-size: 0.385rem;
        /* 0.7rem * 0.55 */
        padding: 4.4px 11px;
        /* 8px 20px * 0.55 */
    }

    /* Hero Banner */
    .hero-band-content {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-top: 2.5rem;
        padding-bottom: 0;
    }

    .hero-text-area {
        max-width: 100%;
        padding: 0 0 1.5rem;
    }

    .hero-text-title {
        font-size: 2rem;
    }

    .hero-photo-area {
        position: relative;
        width: 100%;
        height: 302.5px;
        /* 550px * 0.55 */
    }

    .hero-photo-area img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center bottom;
    }

    .btn-primary-blue,
    .btn-outline-white {
        width: 100%;
        max-width: none;
        margin-bottom: 10px;
        font-size: 0.85rem;
        padding: 10px 25px;
    }


    .header-scrolled .site-tagline-text {
        font-size: 0.455rem;
        /* 0.7rem * 0.65 */
    }

    /* Hero Banner */
    .hero-band-content {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 0;
    }

    .hero-text-area {
        max-width: 100%;
        padding: 0 0 2rem;
    }

    .hero-photo-area {
        position: relative;
        width: 100%;
        height: 357.5px;
        /* 550px * 0.65 */
    }

    .hero-photo-area img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center bottom;
    }

    /* Secciones */
    section {
        padding: 4rem 0;
    }

    .services .grid,
    .locations .grid {
        grid-template-columns: 1fr;
    }
}

/* MÓVILES (max-width: 480px) */
@media (max-width: 480px) {

    /* Escalado al 55% del original */
    .site-header-white {
        padding: 0.5rem 0;
    }

    .header-branding {
        padding-top: 11px;
        /* 20px * 0.55 */
    }

    .header-flex-layout {
        flex-direction: column;
        gap: 22px;
        /* 40px * 0.55 */
        padding: 0.6rem 0;
    }

    .logo-wrapper {
        gap: 8.25px;
        /* 15px * 0.55 */
        justify-content: center;
    }

    .header-logo-icon {
        padding-top: 3.85px;
        /* 7px * 0.55 */
        height: 38.5px;
        /* 70px * 0.55 */
    }

    .site-title-text {
        font-size: 0.715rem;
        /* 1.3rem * 0.55 */
        letter-spacing: 1.1px;
        /* 2px * 0.55 */
    }

    .site-tagline-text {
        font-size: 0.385em;
        /* 0.7em * 0.55 */
        letter-spacing: 2.75px;
        /* 5px * 0.55 */
        margin-top: 2.75px;
        /* 5px * 0.55 */
    }

    .header-cta-wrapper {
        padding-top: 16.5px;
        /* 30px * 0.55 */
        width: 100%;
        text-align: center;
    }

    .btn-header-orange {
        font-size: 0.44rem;
        /* 0.8rem * 0.55 */
        padding: 4.4px 11px;
        /* 8px 20px * 0.55 */
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    /* Navegación */
    .main-navigation-menu {
        width: 100%;
    }

    .nav-links-row {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .main-navigation-menu a {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }

    /* Header scrolled */
    .header-scrolled {
        padding: 0.25rem 0;
    }

    .header-scrolled .header-logo-icon {
        height: 33px;
        /* 60px * 0.55 */
    }

    .header-scrolled .site-title-text {
        font-size: 0.55rem;
        /* 1rem * 0.55 */
    }

    .header-scrolled .site-tagline-text {
        font-size: 0.385rem;
        /* 0.7rem * 0.55 */
    }

    .header-scrolled .btn-header-orange {
        font-size: 0.385rem;
        /* 0.7rem * 0.55 */
        padding: 4.4px 11px;
        /* 8px 20px * 0.55 */
    }

    /* Hero Banner */
    .hero-band-content {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-top: 2.5rem;
        padding-bottom: 0;
    }

    .hero-text-area {
        max-width: 100%;
        padding: 0 0 1.5rem;
    }

    .hero-text-title {
        font-size: 2rem;
    }

    .hero-photo-area {
        position: relative;
        width: 100%;
        height: 302.5px;
        /* 550px * 0.55 */
    }

    .hero-photo-area img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center bottom;
    }

    .btn-primary-blue,
    .btn-outline-white {
        width: 100%;
        max-width: none;
        margin-bottom: 10px;
        font-size: 0.85rem;
        padding: 10px 25px;
    }

    .hero-action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* Secciones */
    section {
        padding: 3rem 0;
    }

    /* Pantallas extra achatadas (menor a 500px de altura) */
    @media (max-height: 500px) {
        body {
            padding-top: 35px !important;
        }

        .site-header-white {
            padding: 0.15rem 0 !important;
        }

        .header-logo-icon {
            height: 35px !important;
        }

        .site-title-text {
            font-size: 0.75rem !important;
        }

        .site-tagline-text {
            display: none !important;
            /* Ocultar subtítulo */
        }

        /* Icono circular pequeño */
        .btn-header-orange {
            width: 35px !important;
            height: 35px !important;
            border-radius: 50% !important;
            padding: 0 !important;
            font-size: 0 !important;
        }

        .btn-header-orange::before {
            content: "📞";
            font-size: 1rem;
        }

        /* Hero ultra compacto horizontal */
        .hero-band-content {
            min-height: 300px !important;
            padding: 1rem 0 !important;
            flex-direction: row !important;
            position: relative;
        }

        .hero-text-area {
            max-width: 60% !important;
            z-index: 3;
        }

        .hero-text-subtitle {
            font-size: 0.7rem !important;
            margin-bottom: 0.2rem !important;
        }

        .hero-text-title {
            font-size: 1.5rem !important;
            margin-bottom: 0.5rem !important;
            line-height: 1;
        }

        .hero-text-description {
            font-size: 0.75rem !important;
            margin-bottom: 0.8rem !important;
            line-height: 1.3;
        }

        .hero-action-buttons {
            flex-direction: row !important;
            gap: 8px !important;
        }

        .btn-primary-blue,
        .btn-outline-white {
            padding: 6px 16px !important;
            font-size: 0.7rem !important;
        }

        /* Foto del doctor al lado derecho */
        .hero-photo-area {
            width: 40% !important;
            height: 100% !important;
            position: absolute !important;
            right: 0 !important;
            bottom: 0 !important;
            opacity: 0.8 !important;
        }

        .hero-photo-area img {
            height: 100% !important;
            width: auto !important;
            object-fit: cover !important;
        }

        section {
            padding: 1.5rem 0 !important;
        }
    }
}

/* ==================================
   ARREGLO ICONOS REDES SOCIALES FOOTER
   ================================== */

/* Contenedor de los iconos */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* El círculo que rodea al icono */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    /* Tamaño fijo para que sea un círculo */
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    /* Fondo blanco semi-transparente */
    border-radius: 50%;
    /* Lo hace perfectamente redondo */
    color: var(--white);
    /* Color del icono interior */
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Aseguramos que el SVG dentro tenga el tamaño y color correctos */
.social-icon svg {
    width: 20px;
    height: 20px;
    /* Importante para que el SVG tome el color del texto */
    stroke: currentColor;
    fill: none;
}

/* Efecto al pasar el ratón (Hover) */
.social-icon:hover {
    background: var(--doctoralia-green);
    /* Cambia al color verde corporativo */
    color: var(--white);
    transform: translateY(-3px);
    /* Pequeño saltito hacia arriba */
    box-shadow: 0 5px 15px rgba(0, 204, 177, 0.3);
    /* Sombra suave verde */
}