/* ==========================================================================
   DISEÑO SYSTEM & VARIABLES (DR. LUIS ANÍBAL YUPA)
   ========================================================================== */
:root {
    /* Paleta de Colores Exclusiva */
    --color-primary: #776D38;        /* Verde oliva corporativo */
    --color-primary-light: #9b8f4e;  /* Verde oliva claro para hovers */
    --color-primary-rgb: 119, 109, 56;
    
    --color-secondary: #17385F;      /* Azul corporativo oscuro */
    --color-secondary-light: #204c80;/* Azul corporativo claro */
    --color-secondary-rgb: 23, 56, 95;

    --color-dark-blue: #32425B;      /* Tono azulado intermedio */
    
    --color-accent: #8FCFE8;         /* Celeste acento suave */
    --color-accent-rgb: 143, 207, 232;
    
    --color-text-dark: #1e293b;      /* Texto principal */
    --color-text-muted: #64748b;     /* Texto secundario */
    --color-bg-light: #f8fafc;       /* Fondo claro */
    --color-white: #ffffff;
    --color-whatsapp: #25d366;       /* Color oficial de WhatsApp */
    --color-whatsapp-dark: #128c7e;

    /* Tipografía */
    --font-primary: 'Outfit', 'Century Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Sombras Elevadas (Aesthetics) */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(23, 56, 95, 0.08), 0 8px 16px -6px rgba(23, 56, 95, 0.05);
    --shadow-lg: 0 20px 35px -10px rgba(23, 56, 95, 0.12), 0 12px 20px -8px rgba(23, 56, 95, 0.08);
    --shadow-primary: 0 10px 20px -5px rgba(119, 109, 56, 0.3);
    --shadow-whatsapp: 0 10px 25px rgba(37, 211, 102, 0.35);

    /* Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* ==========================================================================
   RESET GENERAL & ACCESIBILIDAD
   ========================================================================== */
*, *::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-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

ul {
    list-style: none;
}

/* Contenedores */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* ==========================================================================
   COMPONENTES DE BOTONES Y DECORACIÓN
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -5px rgba(119, 109, 56, 0.45);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(23, 56, 95, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Animación de respiración / pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(119, 109, 56, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(119, 109, 56, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(119, 109, 56, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Títulos y Secciones */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-tag.text-light {
    color: var(--color-accent);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-secondary);
}

.text-white {
    color: var(--color-white);
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.section-divider.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.text-light-gray {
    color: #e2e8f0;
}

/* Placeholders de imágenes elegantes */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    padding: 2rem;
    border-radius: inherit;
    text-align: center;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.placeholder-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

.placeholder-sub {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   NAV BAR & HEADER (STICKY & GLASSMORPHISM)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(23, 56, 95, 0.05);
    transition: var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    transition: var(--transition-normal);
}

.header.scrolled .navbar-container {
    height: 65px;
}

/* Logotipo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.logo-svg, .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-full);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

/* Menú de Navegación */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--color-dark-blue);
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

/* Subrayado animado */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-normal);
}

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

.nav-cta-mobile {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Menú Hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger-menu .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--color-secondary);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION (BIENVENIDA)
   ========================================================================== */
.hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 85% 15%, rgba(143, 207, 232, 0.15) 0%, rgba(255, 255, 255, 0) 50%),
                radial-gradient(circle at 15% 85%, rgba(119, 109, 56, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

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

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(119, 109, 56, 0.08);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--color-dark-blue);
}

.feature-item i {
    color: var(--color-primary);
    font-size: 1.25rem;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(119, 109, 56, 0.08);
    border-radius: var(--radius-full);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Lado Derecho: Imagen */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    z-index: 1;
}

.hero-image-bg {
    position: absolute;
    top: -5%;
    right: -5%;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background-color: rgba(143, 207, 232, 0.2);
    z-index: -1;
    transition: var(--transition-slow);
}

.hero-image-container:hover .hero-image-bg {
    transform: translate(-10px, 10px);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-placeholder {
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   SECCIÓN SOBRE MÍ
   ========================================================================== */
.about-section {
    background-color: var(--color-secondary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Fondos Abstractos */
.about-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: var(--radius-full);
    background: radial-gradient(circle, rgba(143, 207, 232, 0.1) 0%, rgba(23, 56, 95, 0) 70%);
}

.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

/* Izquierda: Imagen */
.about-image-wrapper {
    position: relative;
    width: 100%;
}

.about-image-container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3 / 4;
}

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

.about-image-wrapper:hover .about-img {
    transform: scale(1.03);
}

.about-placeholder {
    aspect-ratio: 3 / 4;
}

/* Tarjeta de Experiencia */
.experience-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 180px;
    text-align: center;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.3;
}

/* Derecha: Texto */
.about-content {
    display: flex;
    flex-direction: column;
}

.about-paragraph {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-pilars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pilar-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.pilar-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(143, 207, 232, 0.15);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.pilar-item:hover .pilar-icon {
    background-color: var(--color-accent);
    color: var(--color-secondary);
}

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

.pilar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.pilar-desc {
    font-size: 0.95rem;
    color: #cbd5e1;
}

/* ==========================================================================
   SECCIÓN SERVICIOS (TARJETAS DINÁMICAS)
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.section-header {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Tarjetas de servicios */
.service-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-normal);
    border: 1px solid rgba(23, 56, 95, 0.04);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(119, 109, 56, 0.15);
}

/* Contenedor de Imagen de la tarjeta */
.service-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f1f5f9;
}

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

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Fallback background if no image is present */
.fallback-service-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(23, 56, 95, 0.9) 0%, rgba(50, 66, 91, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preventive-bg {
    background: linear-gradient(135deg, rgba(119, 109, 56, 0.9) 0%, rgba(143, 207, 232, 0.6) 100%);
}

.visual-icon {
    font-size: 4rem;
    color: var(--color-white);
    opacity: 0.9;
}

.service-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(23, 56, 95, 0.85);
    backdrop-filter: blur(5px);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Contenido de la Tarjeta */
.service-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
}

.service-card:hover .service-card-title {
    color: var(--color-primary);
}

.service-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--color-dark-blue);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
}

.service-list li i {
    margin-top: 3px;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.service-action {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.25rem;
    margin-top: auto;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.btn-text i {
    transition: var(--transition-fast);
}

.btn-text:hover {
    color: var(--color-secondary);
}

.btn-text:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   SECCIÓN DE CONTACTO Y UBICACIÓN
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: start;
}

/* Formulario de agendamiento */
.contact-form-wrapper {
    background-color: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(23, 56, 95, 0.03);
}

.contact-form-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.form-group label i {
    color: var(--color-primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    background-color: var(--color-white);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    color: var(--color-text-dark);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(119, 109, 56, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Bloque derecho: Datos de ubicación y Mapa */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.detail-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.detail-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(119, 109, 56, 0.08);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.detail-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
}

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

.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-top: 0.35rem;
}

.detail-link:hover {
    color: var(--color-secondary);
}

/* Simulación de Mapa Google Maps de Alta Fidelidad */
.map-container {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(23, 56, 95, 0.08);
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    background-color: #f1f5f9;
}

.map-header {
    background-color: var(--color-white);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.map-header h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.map-location-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.simulated-map-view {
    height: 220px;
    background-color: #e5e9f0;
    position: relative;
    overflow: hidden;
}

/* Rejilla decorativa de calles */
.map-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(#cbd5e1 1.5px, transparent 1.5px),
        radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    opacity: 0.45;
}

.map-grid-lines::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #f8fafc;
    transform: rotate(-10deg);
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
}

.map-grid-lines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 55%;
    width: 25px;
    height: 100%;
    background-color: #f8fafc;
    transform: rotate(35deg);
    border-left: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
}

.street-label {
    position: absolute;
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: rgba(248, 250, 252, 0.8);
    padding: 1px 4px;
    border-radius: 2px;
}

.street-label.vertical {
    top: 20%;
    left: 58%;
    transform: rotate(35deg);
}

.street-label.horizontal {
    top: 38%;
    left: 10%;
    transform: rotate(-10deg);
}

.sector-label {
    position: absolute;
    top: 65%;
    left: 20%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
    background-color: rgba(143, 207, 232, 0.45);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1.5px dashed var(--color-secondary);
}

/* Marcador médico pulsante */
.map-marker {
    position: absolute;
    top: 36%;
    left: 56%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg) translate(0px, 0px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 3;
}

.map-marker i {
    transform: rotate(45deg);
    font-size: 0.85rem;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(119, 109, 56, 0.35);
    animation: ring-pulse 2s infinite;
    z-index: -1;
}

@keyframes ring-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.map-button {
    margin: 0.85rem;
    align-self: center;
}

/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 80px;
    border-top: 2px solid rgba(119, 109, 56, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo .logo-svg,
.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-full);
}

.footer-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-white);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

/* Links Rápidos */
.footer-links h4, .footer-schedule h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-schedule h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links ul a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-links ul a i {
    font-size: 0.7rem;
    transition: var(--transition-fast);
}

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

.footer-links ul a:hover i {
    transform: translateX(3px);
}

/* Horario en Footer */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.font-semibold {
    font-weight: 600;
}

/* Barra Inferior del Footer */
.footer-bottom {
    background-color: #020617;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

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

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP (CON TOOLTIP INTELIGENTE)
   ========================================================================== */
.whatsapp-floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.15rem;
    box-shadow: var(--shadow-whatsapp);
    cursor: pointer;
    position: relative;
    transition: var(--transition-normal);
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 1px solid var(--color-whatsapp);
    animation: whatsapp-pulse 1.8s infinite;
    opacity: 0.6;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.3; }
    100% { transform: scale(1.3); opacity: 0; }
}

.whatsapp-btn:hover {
    background-color: var(--color-whatsapp-dark);
    transform: scale(1.08) rotate(5deg);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444;
    color: var(--color-white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
}

/* Tooltip Interactivo */
.whatsapp-tooltip {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 280px;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid rgba(23, 56, 95, 0.08);
    transform: translateY(15px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 1000;
}

.whatsapp-tooltip.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Pequeño indicador del globo de diálogo */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 16px;
    height: 16px;
    background-color: var(--color-white);
    transform: rotate(45deg);
    border-right: 1px solid rgba(23, 56, 95, 0.08);
    border-bottom: 1px solid rgba(23, 56, 95, 0.08);
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-indicator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #22c55e;
    animation: status-pulse 1.5s infinite;
}

@keyframes status-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.2); opacity: 0; }
}

.whatsapp-tooltip p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.tooltip-btn {
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    transition: var(--transition-fast);
}

.tooltip-btn:hover {
    background-color: var(--color-whatsapp-dark);
}

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVE (MOBILE-FIRST)
   ========================================================================== */

/* Dispositivos Medios (Tablets: 992px e inferiores) */
@media (max-width: 992px) {
    .container {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

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

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

    .hero-features {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        justify-items: center;
    }

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

    .hero-image-wrapper {
        order: -1; /* Muestra la imagen arriba en móvil */
        max-width: 380px;
        margin: 0 auto;
    }

    /* Sobre Mí */
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper {
        max-width: 380px;
        margin: 0 auto;
    }

    .experience-card {
        bottom: -15px;
        right: -15px;
        padding: 1.25rem;
    }

    /* Servicios */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Contacto */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .contact-form-wrapper {
        padding: 2.25rem;
    }
}

/* Dispositivos Móviles Grandes (768px e inferiores) */
@media (max-width: 768px) {
    /* Navbar móvil */
    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 3rem 1.5rem;
        gap: 2rem;
        transition: var(--transition-normal);
        box-shadow: 0 15px 30px rgba(23, 56, 95, 0.08);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.15rem;
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }

    .nav-cta {
        display: none; /* Oculta el CTA normal de escritorio */
    }

    .nav-cta-mobile {
        display: flex;
        width: 100%;
        max-width: 280px;
        margin-top: 1rem;
    }

    /* Transformación del menú hamburguesa */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Servicios */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links h4::after, .footer-schedule h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .schedule-list li {
        justify-content: center;
        gap: 1.5rem;
    }

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

/* Dispositivos Móviles Pequeños (576px e inferiores) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

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

    /* Hero */
    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
    }

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

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Formulario */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    /* WhatsApp floating position adjustment */
    .whatsapp-floating-container {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 52px;
        height: 52px;
        font-size: 1.8rem;
    }

    .whatsapp-tooltip {
        width: 250px;
        right: -10px;
    }
}
