/* ==========================================================================
   1. VARIABLES Y ESTILOS GENERALES
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

:root {
    --bg-oscuro: #090d16;       /* Fondo oscuro profundo del Figma */
    --bg-tarjeta: #131926;      /* Fondo de elementos flotantes o tarjetas */
    --texto-principal: #ffffff;
    --texto-secundario: #94a3b8;
    --color-primario: #7B2D8B;  /* Morado real del botón Solicitar Presupuesto */
    --border-soft: rgba(255, 255, 255, 0.08);
    --nav-h: 76px;              /* Alto real de la navbar fija, usado para que el hero pantalla-completa no quede tapado */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-oscuro);
    color: var(--texto-principal);
    min-height: 100vh;
    overflow-x: hidden;
}




/* ==========================================================================
   2. BARRA DE NAVEGACIÓN (NAVBAR)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;       /* evita que se parta en dos filas */
    padding: 12px 5%;
    gap: 16px;
}

/* Logo */
.nav-logo .logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Enlaces del Centro */
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #475569;                      /* ← Gris oscuro legible sobre blanco */
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #0f172a;                      /* ← Casi negro al hacer hover */
}

/* Bloque de Acciones (Derecha) */
.nav-acciones {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Botón Iniciar Sesión — con ícono y borde */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #374151;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login svg {
    width: 16px;  /* Ajusta al tamaño que quieras, ej. 16px o 18px */
    height: 16px;
    flex-shrink: 0; /* Evita que el contenedor flex "asfixie" o aplaste el SVG */
}

.btn-login:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Botón Registrarse — oscuro sobre blanco */
.btn-registro {
    background-color: transparent;
    border: 1.5px solid #7B2D8B;
    color: #7B2D8B;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-registro:hover {
    background-color: #652771;
    color: #ffffff;
}

/* Carrito — oscuro sobre blanco */
.btn-carrito {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    padding: 4px 8px;
    color: #374151;                      /* ← Oscuro para fondo blanco */
    transition: color 0.2s;
}

.btn-carrito:hover {
    color: #0f172a;
}

.contador-carrito {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--color-primario);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}




/* ==========================================================================
   3. SECCIÓN HERO GLOBAL Y CONTENEDORES DEL CARRUSEL
   ========================================================================== */
.hero-seccion-global {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;                   /* ← Fallback para navegadores sin soporte de dvh */
    min-height: 100dvh;                  /* ← Ocupa el 100% del alto real visible en cualquier pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;             /* ← Centra el carrusel verticalmente dentro de la pantalla completa */
    padding: calc(var(--nav-h) + 24px) 8% 110px;  /* ← Deja libre el espacio de la navbar fija y el "piso" de beneficios */
}

/* Ventana de recorte */
.carrusel-ventana-global {
    width: 100%;
    overflow: hidden;
}

/* Track del carrusel */
.carrusel-track {
    display: flex;
    width: 400%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Cada slide ocupa 25% del track = 100% visible */
.carrusel-slide {
    width: 25%;
    display: flex;
    align-items: center;                 /* ← Centra verticalmente texto e imagen */
    justify-content: space-between;
    gap: 60px;
}



/* ==========================================================================
   4. COMPONENTES INTERNOS DE CADA LÁMINA (TEXTOS Y BOTONES)
   ========================================================================== */
/* Columna Izquierda: Textos descriptivos */
.hero-contenido {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-titulo {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero-descripcion {
    font-size: 1.1rem;
    color: var(--texto-secundario);
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-botones {
    text-decoration: none;
    display: flex;
    gap: 18px;
}

/* Botón Llamado a la Acción (Morado Figma) */
.btn-cta-morado {
    text-decoration: none;
    background-color: var(--color-primario);
    color: inherit;
    border: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.2s;
    letter-spacing: 0.02em;
}

.btn-cta-morado:hover {
    background-color: #621F72;
}

/* Botón de Contacto Bordeado */
.btn-cta-transparente {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-cta-transparente:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-cta-morado,
.btn-cta-transparente {
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

/* ==========================================================================
   5. COLUMNA DERECHA: VENTANA DE IMAGEN Y TEXTO INTERNO
   ========================================================================== */
.hero-imagen-wrapper {
    flex: 1.15;                           /* ← Le da un poco más de protagonismo que al texto */
    max-width: 620px;                     /* ← Antes 520px: imagen más grande y visible */
    min-width: 320px;                    /* ← Evita que colapse si la imagen tarda */
    aspect-ratio: 4 / 3;                 /* ← Escala de forma fluida en cualquier pantalla, sin alturas fijas */
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background-color: #131926;           /* ← Fondo mientras carga la imagen */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.hero-imagen-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(1.05) contrast(1.05) saturate(1.08); /* ← Realza detalle y color de la fotografía */
    transform: scale(1);
    transition: transform 8s ease;
}

/* Zoom lento y continuo mientras la lámina está visible: da vida a la imagen */
.carrusel-slide.slide-activa .hero-imagen-wrapper img {
    transform: scale(1.06);
}

/* Etiqueta flotante inferior sobre la fotografía */
.slide-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 6px;
}

/* ==========================================================================
   6. BOTONES DE CONTROL LATERALES (FLECHAS FLOTANTES)
   ========================================================================== */
.carrusel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid var(--border-soft);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.carrusel-btn:hover {
    background-color: rgba(15, 23, 42, 0.8);
    transform: translateY(-50%) scale(1.05);
}

/* Posiciones a los extremos del área del Hero */
.btn-izq { left: 15px; }
.btn-der { right: 15px; }

/* ==========================================================================
   7. INDICADORES INFERIORES (DOTS) Y BENEFICIOS
   ========================================================================== */
/* Paginación de puntos inferiores */
.carrusel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #334155;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Forma de cápsula alargada dinámica gestionada por JS */
.dot.activo {
    width: 28px;
    border-radius: 10px;
}

/* Barra inferior de beneficios: anclada al "piso" del carrusel/hero */
.hero-beneficios-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--texto-secundario);
    border-top: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
    box-sizing: border-box;
    padding: 20px 8%;
    z-index: 5;
}

.punto-check {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 6px;
    transition: color 0.3s ease;
}

/* ==========================================================================
   8. CLASES DINÁMICAS DE COLORES ( MATCH CON EL FIGMA )
   ========================================================================== */
/* Variaciones de Badges */
.badge-azul { background-color: rgba(107, 184, 200, 0.1); color: #6BB8C8; }
.badge-verde { background-color: rgba(141, 196, 106, 0.1); color: #8DC46A; }
.badge-coral { background-color: rgba(232, 160, 144, 0.1); color: #E8A090; }
.badge-amarillo { background-color: rgba(232, 232, 122, 0.1); color: #E8E87A; }

/* Variaciones de Etiquetas de Fotos */
.tag-azul { color: #6BB8C8; }
.tag-verde { color: #8DC46A; }
.tag-coral { color: #E8A090; }
.tag-amarillo { color: #E8E87A; }


/* ==========================================================================
   SECCIÓN CATÁLOGO DE PRODUCTOS (FONDO CLARO CONTRASTANTE)
   ========================================================================== */
.productos-seccion {
    background-color: #f8fafc; /* Fondo gris muy claro/blanco del cuerpo del Figma */
    color: #0f172a;            /* Texto oscuro para legibilidad */
    padding: 80px 40px;
    width: 100%;
    margin: 0 auto;
}

/* Encabezado */
.productos-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
    gap: 20px;
}

/* Dentro del catálogo de productos, el bloque de texto ocupa todo el ancho centrado del encabezado */
.productos-header .header-texto {
    max-width: 100%;
}

/* El subtítulo pasa a llevar una línea decorativa a cada lado, igual que en Servicios */
.productos-header .subtitulo-seccion {
    padding: 0 24px;
    display: inline-block;
}

.productos-header .subtitulo-seccion::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background-color: #7B2D8B;
}

.productos-header .titulo-seccion {
    margin-top: 16px;
}

/* Limita el ancho del bloque de texto para que el título haga wrap como en el Figma */
.header-texto {
    max-width: 480px;
}

.subtitulo-seccion {
    color: #7B2D8B;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    position: relative;
    padding-left: 24px;
    display: block;
    margin-bottom: 8px;
}

/* Pequeña línea decorativa morada horizontal antes del subtítulo */
.subtitulo-seccion::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background-color: #7B2D8B;
}

.titulo-seccion {
    font-size: 2.4rem;
    font-weight: 800;
    margin-top: 8px;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Botón Superior Presupuesto por Lote */
.btn-presupuesto-lote {
    background-color: #8E3499;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-presupuesto-lote:hover { background-color: #7B2D8B; }

/* ==========================================================================
   ESTRUCTURA DE LA REJILLA (GRID - 4 COLUMNAS)
   ========================================================================== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Tarjeta Individual */
.producto-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Estructura de la pequeña línea horizontal interna */
.card-linea-decorativa {
    width: 24px;         /* Ancho corto característico del diseño */
    height: 3px;         /* Grosor de la línea */
    border-radius: 2px;
    margin-bottom: 12px; /* Separación con el título */
    display: block;
}

/* Fondos específicos para las líneas decorativas internas */
.bg-azul { background-color: #6BB8C8; }
.bg-verde { background-color: #8DC46A; }
.bg-coral { background-color: #E8A090; }
.bg-amarillo { background-color: #E8E87A; }

/* --------------------------------------------------------------------------
   COMPORTAMIENTO INTERACTIVO HOVER (COLOR PRINCIPAL DE LA CARD)
   -------------------------------------------------------------------------- */

/* Hover Tarjeta Azul (Columna) */
.producto-card.card-hover-azul:hover {
    transform: translateY(-6px);
    border-color: #6BB8C8; /* Ilumina el borde exterior con el azul celeste */
    box-shadow: 0 12px 20px -5px rgba(107, 184, 200, 0.15);
}

/* Hover Tarjeta Verde (Traumatología) */
.producto-card.card-hover-verde:hover {
    transform: translateY(-6px);
    border-color: #8DC46A; /* Ilumina el borde exterior con el verde oliva */
    box-shadow: 0 12px 20px -5px rgba(141, 196, 106, 0.15);
}

/* Hover Tarjeta Coral (Cráneo Buco) */
.producto-card.card-hover-coral:hover {
    transform: translateY(-6px);
    border-color: #E8A090; /* Ilumina el borde exterior con el salmón/coral */
    box-shadow: 0 12px 20px -5px rgba(232, 160, 144, 0.15);
}

/* Hover Tarjeta Amarilla (Insumos) */
.producto-card.card-hover-amarillo:hover {
    transform: translateY(-6px);
    border-color: #E8E87A; /* Ilumina el borde exterior con el amarillo-lima */
    box-shadow: 0 12px 20px -5px rgba(163, 230, 53, 0.15);
}

/* Contenedor de Imagen y Badge Flotante */
.card-imagen-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #dde3ea, #c8d1db); /* placeholder mientras carga */
    overflow: hidden;
}

.card-imagen-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Oculta el alt-text del img roto manteniendo las dimensiones */
    color: transparent;
    font-size: 0;
}

/* Badges sobre la fotografía */
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}
.badge-alta-demanda { background-color: #6BB8C8; }
.badge-disponible { background-color: #8DC46A; }
.badge-especializado { background-color: #E8A090; }
.badge-stock { background-color: #E8E87A; color: #0f172a; }

/* Línea divisoria temática de color debajo de la foto */
.linea-tematica {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
}
.linea-azul { background-color: #6BB8C8; }
.linea-verde { background-color: #8DC46A; }
.linea-coral { background-color: #E8A090; }
.linea-amarillo { background-color: #E8E87A; }

/* Cuerpo interno de la tarjeta */
.card-cuerpo {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

.card-descripcion {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 96px;
}

/* Evita que los links dentro de la descripción hereden color azul del navegador */
.card-descripcion a {
    color: inherit;
    text-decoration: none;
}

/* Viñetas de productos específicos */
.card-lista {
    list-style: none;
    margin-bottom: 12px;
}

.card-lista li {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

/* Viñetas con colores del Figma */
.card-lista li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    line-height: 1;
    top: -1px;
}
.lista-azul li::before { color: #6BB8C8; }
.lista-verde li::before { color: #8DC46A; }
.lista-coral li::before { color: #E8A090; }
.lista-amarillo li::before { color: #E8E87A; }

/* Enlace +2 más... */
.btn-ver-mas {
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 24px;
    display: inline-block;
}
.color-azul { color: #4A8FA0; }
.color-verde { color: #5A8A40; }
.color-coral { color: #C87060; }
.color-amarillo { color: #A0A030; }

/* ==========================================================================
   BLOQUE INFERIOR DE ACCIONES (BOTÓN Y CARRITO)
   ========================================================================== */
.card-acciones {
    display: flex;
    gap: 12px;
    margin-top: auto; /* Empuja las acciones al fondo de la tarjeta */
}

/* Botón Principal Cotizar */
.btn-cotizar {
    flex: 1;
    background-color: #7B2D8B;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-cotizar:hover { background-color: #621F72; }

/* Botones de carrito con bordes y fondos suaves según su tarjeta */
.btn-card-carrito {
    background-color: transparent;
    border: 1px solid;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-cart-azul { border-color: #D8EEF2; color: #4A8FA0; background-color: #E8F5F8; }
.btn-cart-azul:hover { background-color: #D8EEF2; }

.btn-cart-verde { border-color: #E5F5D8; color: #4A7A32; background-color: #EBF8E5; }
.btn-cart-verde:hover { background-color: #E5F5D8; }

.btn-cart-coral { border-color: #F8EAE5; color: #A85848; background-color: #F8F0E8; }
.btn-cart-coral:hover { background-color: #F8EAE5; }

/* Cambia esto en la línea 695: */
.btn-cart-amarillo {
    border-color: #D8F5C0; /* Corrigiendo también el pequeño typo del color si es necesario */
    color: #A0A030;
    background-color: #F8F8DC;
}
.btn-cart-amarillo:hover { background-color: #E5F8DC; }


/* ==========================================================================
   SECCIÓN SERVICIOS ESPECIALIZADOS (BUG FIX FINAL)
   ========================================================================== */
.servicios-seccion {
    background-color: #ffffff; 
    padding: 80px 8%;          
    width: 100%;
    margin: 0 auto;
}

/* Encabezado */
.servicios-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.servicios-subtitulo {
    color: #8E3499; 
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
    padding: 0 24px;
}

.servicios-subtitulo::before,
.servicios-subtitulo::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background-color: #8E3499;
}
.servicios-subtitulo::before { left: 0; }
.servicios-subtitulo::after { right: 0; }

.servicios-titulo {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 16px 0;
    letter-spacing: -0.02em;
}

.servicios-descripcion {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
}

/* Estructura Uniforme de Filas */
.servicios-lista {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.servicio-bloque {
    display: flex;
    align-items: center;
    padding: 36px 40px;
    border-radius: 20px;
    background-color: #f8fafc; /* Fondo grisáceo limpio y uniforme para todas */
    border: 1px solid #f1f5f9;
    gap: 40px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.servicio-bloque:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

/* Caja de Icono Uniforme de Figma (Fondo lila muy claro para todos) */
.servicio-icono-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background-color: #f3e8ff; /* Color lila claro base */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.servicio-icono {
    font-size: 1.7rem;
}
/* Colores sutiles de matiz para los emojis quirúrgicos */
.color-icono-azul { filter: drop-shadow(0 0 2px rgba(107, 184, 200, 0.6)); }
.color-icono-morado { filter: drop-shadow(0 0 2px rgba(124, 58, 237, 0.6)); }
.color-icono-salmon { filter: drop-shadow(0 0 2px rgba(232, 160, 144, 0.6)); }

/* Contenido */
.servicio-info {
    flex: 1;
}

.servicio-nombre {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.servicio-texto {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 900px;
}

/* Grid de Viñetas de 2 Columnas */
.servicio-detalles {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 12px 48px;
}

.detalle-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    position: relative;
    padding-left: 16px;
}

.detalle-item::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 1.3rem;
    line-height: 1;
    top: -2px;
}

/* Sincronización del color de las viñetas según la tarjeta */
.punto-azul::before { color: #6BB8C8; }    /* Azul Celeste de la 1era tarjeta */
.punto-verde::before { color: #8DC46A; }   /* Verde de la 2da tarjeta */
.punto-coral::before { color: #E8A090; }   /* Coral de la 3ra tarjeta */

/* Botón de Acción Universal */
.btn-servicio-cta {
    background-color: #8E3499; 
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.15);
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn-servicio-cta:hover {
    background-color: #7B2D8B;
    transform: scale(1.02);
}

/* Ajustes Responsive */
@media (max-width: 992px) {
    .servicio-bloque {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
        gap: 24px;
    }
    .servicio-detalles {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .btn-servicio-cta {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   COMPORTAMIENTO INTERACTIVO HOVER EN FILAS DE SERVICIOS
   ========================================================================== */

/* Fila 1: Servicio de Instrumentación (Efecto con Azul Celeste) */
.servicios-lista .servicio-bloque:nth-child(1):hover {
    transform: translateY(-4px);
    border-color: #6BB8C8; /* Ilumina el borde en Azul Celeste */
    box-shadow: 0 12px 24px -8px rgba(107, 184, 200, 0.2);
    background-color: #ffffff; /* Sutil aclarado al activarse */
}

/* Fila 2: Alquiler de Instrumental (Efecto con Verde) */
.servicios-lista .servicio-bloque:nth-child(2):hover {
    transform: translateY(-4px);
    border-color: #8DC46A; /* Ilumina el borde en Verde */
    box-shadow: 0 12px 24px -8px rgba(141, 196, 106, 0.2);
    background-color: #ffffff;
}

/* Fila 3: Atención Directa al Paciente (Efecto con Coral/Salmón) */
.servicios-lista .servicio-bloque:nth-child(3):hover {
    transform: translateY(-4px);
    border-color: #E8A090; /* Ilumina el borde en Coral */
    box-shadow: 0 12px 24px -8px rgba(232, 160, 144, 0.2);
    background-color: #ffffff;
}

/* ==========================================================================
   ESTILOS DE TRANSICIÓN Y HOVER GENERAL (CORREGIDO)
   ========================================================================== */

/* Aseguramos que la tarjeta base tenga las transiciones para TODOS los elementos internos */
.servicio-bloque {
    display: flex;
    align-items: center;
    padding: 36px 40px;
    border-radius: 20px;
    background-color: #f8fafc; /* Fondo grisáceo limpio por defecto */
    border: 1px solid #f1f5f9;
    gap: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, 
                box-shadow 0.3s ease, 
                border-color 0.3s ease, 
                background-color 0.3s ease;
}

/* Transición suave para el contenedor del icono/logo interior */
.servicio-icono-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background-color: #f3e8ff; /* Fondo lila claro por defecto */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}


/* ==========================================================================
   EFECTO HOVER PERSONALIZADO POR TARJETA (FONDO, BORDE Y LOGO)
   ========================================================================== */

/* --- TARJETA 1: INSTRUMENTACIÓN QUIRÚRGICA (Acento Azul Celeste) --- */
.servicios-lista .servicio-bloque:nth-child(1):hover {
    transform: translateY(-4px);
    background-color: #D8EEF2; /* Toda la tarjeta cambia a un fondo Azul Sutil */
    border-color: #6BB8C8;     /* El borde se ilumina en azul celeste */
    box-shadow: 0 12px 24px -8px rgba(107, 184, 200, 0.25);
}
/* Cambia el fondo del contenedor del logo en la tarjeta 1 al hacer hover */
.servicios-lista .servicio-bloque:nth-child(1):hover .servicio-icono-wrapper {
    background-color: #6BB8C8; /* El logo/icono adquiere el fondo azul vivo de Figma */
    transform: scale(1.05);
}

/* --- TARJETA 2: ALQUILER DE INSTRUMENTAL (Acento Verde) --- */
.servicios-lista .servicio-bloque:nth-child(2):hover {
    transform: translateY(-4px);
    background-color: #E5F5D8; /* Toda la tarjeta cambia a un fondo Verde Sutil */
    border-color: #8DC46A;     /* El borde se ilumina en verde */
    box-shadow: 0 12px 24px -8px rgba(141, 196, 106, 0.25);
}
/* Cambia el fondo del contenedor del logo en la tarjeta 2 al hacer hover */
.servicios-lista .servicio-bloque:nth-child(2):hover .servicio-icono-wrapper {
    background-color: #8DC46A; /* El logo/icono adquiere el fondo verde de Figma */
    transform: scale(1.05);
}

/* --- TARJETA 3: ATENCIÓN DIRECTA AL PACIENTE (Acento Coral/Salmón) --- */
.servicios-lista .servicio-bloque:nth-child(3):hover {
    transform: translateY(-4px);
    background-color: #F8EAE5; /* Toda la tarjeta cambia a un fondo Coral Sutil */
    border-color: #E8A090;     /* El borde se ilumina en coral */
    box-shadow: 0 12px 24px -8px rgba(232, 160, 144, 0.25);
}
/* Cambia el fondo del contenedor del logo en la tarjeta 3 al hacer hover */
.servicios-lista .servicio-bloque:nth-child(3):hover .servicio-icono-wrapper {
    background-color: #E8A090; /* El logo/icono adquiere el fondo coral de Figma */
    transform: scale(1.05);
}


/* ==========================================================================
   SECCIÓN RESPALDO CLÍNICO Y ACADEMIA
   ========================================================================== */
.academia-seccion {
    background-color: #f8fafc;
    padding: 100px 8%;
    width: 100%;
    margin: 0 auto;
}

/* --- BLOQUE SUPERIOR --- */
.academia-top {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.academia-texto-bloque {
    flex: 1;
}

.academia-subtitulo {
    color: #8E3499; /* Morado de marca corporativo */
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
    padding-left: 24px;
    margin-bottom: 16px;
}

.academia-subtitulo::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background-color: #8E3499;
}

.academia-titulo {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.academia-descripcion {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
}

/* Grid de Métricas (Derecha) */
.academia-grid-metricas {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.metrica-tarjeta {
    background-color: #ffffff;
    border-left: 4px solid;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.metrica-numero {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.metrica-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.4;
}

/* Colores Dinámicos de las Métricas */
.border-azul { border-left-color: #6BB8C8; }
.text-azul { color: #6BB8C8; }

.border-verde { border-left-color: #8DC46A; }
.text-verde { color: #8DC46A; }

.border-salmon { border-left-color: #E8A090; }
.text-salmon { color: #E8A090; }

.border-lima { border-left-color: #E8E87A; }
.text-lima { color: #E8E87A; }


/* --- BLOQUE INFERIOR (TARJETAS VERTICALES) --- */
.academia-programas-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.programa-tarjeta {
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid;
    transition: transform 0.3s ease, 
                background-color 0.25s ease, 
                border-color 0.25s ease, 
                box-shadow 0.3s ease;
}

/* Transición para los textos internos para que cambien a blanco en sincronía */
.programa-tarjeta .programa-titulo,
.programa-tarjeta .programa-texto,
.programa-tarjeta .programa-tag {
    transition: color 0.25s ease;
}

/* Asignación de colores iniciales en las líneas superiores de las tarjetas pasivas */
.hover-azul { border-top-color: #6BB8C8; }
.hover-verde { border-top-color: #8DC46A; }
.hover-salmon { border-top-color: #E8A090; }
.hover-lima { border-top-color: #E8E87A; }



/* Pequeños wrappers circulares/redondeados blandos para los iconos */
.programa-icono-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.programa-icono {
    font-size: 1.25rem;
}

/* Fondos pasteles por defecto para los iconos */
.bg-soft-azul { background-color: #D8EEF2; }
.bg-soft-verde { background-color: #EBF8E5; }
.bg-soft-salmon { background-color: #F8F0E8; }
.bg-soft-lima { background-color: #F8F8DC; }

.programa-tag {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.programa-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.programa-texto {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

/* --- COMPORTAMIENTO INTERACTIVO HOVER EN ACADEMIA --- */
.programa-tarjeta:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.08);
}

.hover-azul:hover { border-color: #6BB8C8; }
.hover-verde:hover { border-color: #8DC46A; }
.hover-salmon:hover { border-color: #E8A090; }
.hover-lima:hover { border-color: #E8E87A; }


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .academia-programas-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .academia-top {
        flex-direction: column;
        gap: 40px;
    }
    .academia-grid-metricas {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .academia-grid-metricas,
    .academia-programas-container {
        grid-template-columns: 1fr;
    }
    .academia-titulo {
        font-size: 2.1rem;
        text-align: center;
    }
}

/* --- BLOQUE DE UBICACIÓN GPS --- */
.academia-ubicacion {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 80px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
}

.ubicacion-mapa {
    flex: 1;
    max-width: 420px;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.ubicacion-mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.ubicacion-info {
    flex: 1;
}

.ubicacion-titulo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.ubicacion-direccion {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-ver-mapa {
    display: inline-block;
    background-color: #8E3499;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-ver-mapa:hover {
    background-color: #7B2D8B;
}

@media (max-width: 768px) {
    .academia-ubicacion {
        flex-direction: column;
        padding: 24px;
        gap: 24px;
        text-align: center;
    }

    .ubicacion-mapa {
        max-width: 100%;
    }
}





.academia-alianzas-container {
    margin-top: 5rem;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.alianzas-titulo {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.alianzas-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    display: flex; /* Asegura un contexto flex de contención */
}

/* Gradientes laterales sutiles (reducidos al 5% para evitar que oculten tarjetas completas) */
.alianzas-slider-wrapper::before,
.alianzas-slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 5%; 
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.alianzas-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}
.alianzas-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

/* Track con corrección de alineación */
.alianzas-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    align-items: center;
    animation: desplazamientoInfinito 25s linear infinite;
}

.alianzas-track:hover {
    animation-play-state: paused;
}

/* Tarjeta individual con dimensiones fijas para evitar distorsiones */
.alianza-tarjeta {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 250px; /* Tamaño mínimo estándar basado en el diseño */
    height: 70px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    flex-shrink: 0; /* Evita que las tarjetas se compriman dentro del contenedor flex */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.alianza-tarjeta span {
    font-size: 0.95rem;
    color: #475569;
}

.alianza-tarjeta span strong {
    color: #0f172a;
    font-weight: 700;
}

.alianza-tarjeta:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@keyframes desplazamientoInfinito {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Se desplaza exactamente la mitad del ancho total del track (el bloque original) */
        transform: translateX(-50%);
    }
}



/* ==========================================================================
   SECCIÓN SOLICITAR PRESUPUESTO
   ========================================================================== */
.presupuesto-seccion {
    background-color: #ffffff;
    padding: 100px 8%;
    display: flex;
    align-items: flex-start;
    gap: 80px;
    width: 100%;
}

/* --- COLUMNA IZQUIERDA --- */
.presupuesto-info {
    flex: 1;
    max-width: 480px;
}

.presupuesto-subtitulo {
    color: #8E3499;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
    padding-left: 24px;
    margin-bottom: 20px;
}

.presupuesto-subtitulo::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background-color: #8E3499;
}

.presupuesto-titulo {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.presupuesto-descripcion {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 32px;
}

.link-morado {
    color: #8E3499;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Botón WhatsApp Verde */
.btn-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 40px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-cta:hover {
    background-color: #6BB86A;
    transform: translateY(-2px);
}

/* Tarjetas de Info */
.presupuesto-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pres-item {
    background-color: #f8fafc;
    border-left: 4px solid;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pres-item-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pres-item-valor {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

/* Colores de borde e íconos para cada item */
.borde-coral { border-left-color: #E8A090; }
.label-coral { color: #E8A090; }

.borde-verde { border-left-color: #8DC46A; }
.label-verde { color: #5A8A40; }

.borde-azul { border-left-color: #6BB8C8; }
.label-azul { color: #4A8FA0; }

/* --- COLUMNA DERECHA: FORMULARIO --- */
.presupuesto-form-wrapper {
    flex: 1;
}

.presupuesto-form-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.form-card-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 28px;
}

.presupuesto-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Fila doble (nombre + teléfono) */
.form-fila-doble {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Campo individual */
.form-campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-campo label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.req {
    color: #ef4444;
}

.form-campo input,
.form-campo select,
.form-campo textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #0f172a;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-campo input::placeholder,
.form-campo textarea::placeholder {
    color: #94a3b8;
}

.form-campo input:focus,
.form-campo select:focus,
.form-campo textarea:focus {
    border-color: #8E3499;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form-campo select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-campo textarea {
    resize: vertical;
    min-height: 120px;
}

/* Botón Enviar */
.btn-enviar-whatsapp {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #8E3499, #7B2D8B);
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
    margin-top: 4px;
}

.btn-enviar-whatsapp:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Disclaimer inferior */
.form-disclaimer {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .presupuesto-seccion {
        flex-direction: column;
        align-items: stretch;    /* ← En columna, esto hace que el formulario ocupe todo el ancho disponible en vez de encogerse */
        gap: 50px;
    }
    .presupuesto-info {
        max-width: 100%;
    }
    .presupuesto-titulo {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .presupuesto-seccion {
        padding: 60px 5%;
    }
    .form-fila-doble {
        grid-template-columns: 1fr;
    }
    .presupuesto-titulo {
        font-size: 1.8rem;
    }
    .presupuesto-form-card {
        padding: 24px;
    }
}



/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #090d16;
    padding: 70px 8% 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Grid de 3 columnas */
.footer-contenido {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

/* --- COLUMNA 1: MARCA --- */
.footer-logo-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: fit-content;
}

.footer-logo {
    height: 40px;
    width: auto;
    display: block;
}

.footer-descripcion {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-rif {
    display: inline-block;
    background-color: rgba(124, 58, 237, 0.2);
    color: #C47FD0;
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
}

/* Dots de Redes Sociales */
.footer-social-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.social-dot:hover {
    transform: scale(1.12);
    opacity: 0.9;
}

.dot-whatsapp  { background-color: #25d366; }
.dot-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.dot-facebook  { background-color: #1877f2; }
.dot-tiktok    { background-color: #010101; border: 1px solid rgba(255,255,255,0.15); }
.dot-youtube   { background-color: #ff0000; }

/* --- COLUMNA 2: CONTACTO --- */
.footer-col-titulo {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.footer-contacto-lista {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-contacto-icono-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E3499;
    flex-shrink: 0;
}

.footer-contacto-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.footer-contacto-texto p {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.footer-contacto-texto a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contacto-texto a:hover {
    color: #C47FD0;
}

/* --- COLUMNA 3: LINKS LEGALES --- */
.footer-links-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.footer-links-lista li a {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.footer-links-lista li a::before {
    content: "→";
    color: #7B2D8B;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.footer-links-lista li a:hover {
    color: #e2e8f0;
    gap: 12px;
}

.footer-links-lista li a:hover::before {
    transform: translateX(3px);
}

/* Botón Instagram */
.btn-instagram-footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(253, 29, 29, 0.25);
}

.btn-instagram-footer:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- BARRA INFERIOR --- */
.footer-barra-inferior {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #475569;
}

.footer-bottom-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.bottom-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #334155;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .footer-contenido {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-col-marca {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 50px 5% 0;
    }
    .footer-contenido {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-col-marca {
        grid-column: auto;
    }
    .footer-barra-inferior {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

a {
    text-decoration: none;
    color: inherit;
}



/* ==========================================================================
   AJUSTES RESPONSIVE PARA EL HERO / CARRUSEL (MÓVIL Y TABLET)
   ========================================================================== */
@media (max-width: 768px) {
    .carrusel-slide {
        flex-direction: column-reverse;
        gap: 30px;
        padding: 40px 20px 60px 20px;
        min-height: auto;
        overflow: hidden;
    }

    .hero-contenido,
    .hero-imagen-wrapper {
        max-width: 100%;
        width: 100%;
        min-width: 0;
    }

    .hero-imagen-wrapper {
        aspect-ratio: 16 / 9;            /* ← Formato banner en pantallas angostas */
    }

    .hero-contenido {
        overflow: hidden;
    }

    .hero-titulo {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-botones {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding-bottom: 8px;
    }

    .btn-cta-morado,
    .btn-cta-transparente {
        width: 100%;
        text-align: center;
        display: block;
        box-sizing: border-box;
        padding: 14px 20px;      /* ← Vuelve a un tamaño cómodo en móvil (el grande es solo para escritorio) */
        font-size: 0.9rem;
    }

    .hero-seccion-global {
        justify-content: flex-start;      /* ← Evita que láminas con títulos largos se desborden hacia arriba y queden tapadas por el navbar */
        padding-bottom: 32px;             /* ← En móvil la barra vuelve al flujo normal, no necesita espacio reservado */
    }

    .hero-beneficios-bar {
        position: static;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 30px;
        padding: 20px 0 0;
        background: none;
        backdrop-filter: none;
    }

}

/* ==========================================================================
   NAVBAR — pasa a menú hamburguesa antes (pantallas medianas/tablet)
   ========================================================================== */
@media (max-width: 992px) {
    /* NAVBAR */
    .navbar {
        padding: 10px 4%;
        gap: 8px;
    }

    .nav-logo {
        order: 1;
        flex: 1;
    }

    .nav-links {
        order: 2;
    }

    .nav-acciones {
        order: 3;
        gap: 6px;
        flex-shrink: 0;
    }

    .nav-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        order: 4;                 /* ← Se coloca después de nav-acciones (a la derecha del carrito) sin importar su posición en el HTML */
        margin-left: 4px;         /* ← Separación respecto al botón del carrito */
    }

    .btn-login {
        padding: 8px;
        min-width: unset;
        font-size: 0;
        gap: 0;
    }

    .btn-login svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .btn-registro {
        padding: 7px 10px;
        font-size: 0.75rem;
    }

    .btn-carrito {
        padding: 7px 8px;
        font-size: 0.85rem;
    }

    /* NAV LINKS HAMBURGER */
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        z-index: 99;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition:
            max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            opacity    0.25s ease,
            transform  0.25s ease,
            padding    0.35s ease;
    }

    .nav-links.activo {
        max-height: 560px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding: 0px;
        text-align: center;
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links.activo li:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.05s; }
    .nav-links.activo li:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.10s; }
    .nav-links.activo li:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.15s; }
    .nav-links.activo li:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.20s; }
    .nav-links.activo li:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: 0.25s; }
    .nav-links.activo li:nth-child(6) { opacity: 1; transform: translateX(0); transition-delay: 0.30s; }

    .nav-links li a {
        display: block;
        padding: 14px 24px;
        font-size: 1rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero-titulo {
        font-size: 1.75rem;
    }

    .hero-seccion-global {
        padding: calc(var(--nav-h) + 16px) 4% 24px;
    }

    .blog-seccion {
        padding: 50px 4%;
    }

    .blog-img-wrapper {
        height: 180px;
    }
}

/* Ocultar Registrarse en móviles muy pequeños */
@media (max-width: 400px) {
    .btn-registro {
        display: none;
    }
}

/* ==========================================================================
   CORRECCIÓN GLOBAL RESPONSIVE
   ========================================================================== */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.hero-seccion-global,
.carrusel-ventana-global {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
}

@media (max-width: 992px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 650px) {
    .productos-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .productos-seccion {
        padding: 40px 16px !important;
    }
    .producto-tarjeta-contenido h3 {
        font-size: 1.25rem !important;
    }
}

/* ==========================================================================
   NAVBAR RESPONSIVE — MENÚ HAMBURGER
   ========================================================================== */
.nav-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.nav-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-menu-toggle.abierto span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-menu-toggle.abierto span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-menu-toggle.abierto span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================================================
   CARRUSEL — comportamiento base (altura fluida vía aspect-ratio arriba)
   ========================================================================== */
.carrusel-slide {
    align-items: center;
    overflow: visible;
}

@media (max-width: 900px) {
    .btn-whatsapp-flotante {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
        bottom: 20px;
        right: 20px;
        flex-shrink: 0;
        flex-grow: 0;
    }

    .btn-whatsapp-label {
        display: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .blog-card-destacada {
        grid-row: span 1;
    }

    .blog-card-destacada .blog-img-wrapper {
        min-height: 220px;
        flex: none;
        height: 220px;
    }

    .blog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-volver-arriba {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
        bottom: 88px;
        right: 20px;
        flex-shrink: 0;
        flex-grow: 0;
    }

    .btn-volver-arriba-label {
        display: none;
    }
}

/* ==========================================================================
   SECCIÓN BLOG
   ========================================================================== */
.blog-seccion {
    padding: 80px 6%;
    background-color: #f8fafc;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-ver-todos-blog {
    color: #7B2D8B;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.btn-ver-todos-blog:hover {
    color: #621F72;
    text-decoration: underline;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(123, 45, 139, 0.12);
    border-color: #7B2D8B;
}

.blog-card-destacada {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.blog-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}

.blog-card-destacada .blog-img-wrapper {
    flex: 1;
    height: auto;
    min-height: 260px;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-categoria {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cat-postoperatorio { background-color: #6BB8C8; color: #ffffff; }
.cat-productos      { background-color: #8DC46A; color: #ffffff; }
.cat-articulo       { background-color: #7B2D8B; color: #ffffff; }

.blog-cuerpo {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.blog-card-destacada .blog-cuerpo {
    padding: 24px;
}

.blog-fecha { font-size: 0.78rem; color: #94a3b8; }

.blog-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-titulo { color: #7B2D8B; }
.blog-card-destacada .blog-titulo { font-size: 1.25rem; }

.blog-resumen {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.65;
}

.blog-footer-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.blog-autor { font-size: 0.78rem; color: #94a3b8; font-weight: 600; }

.blog-leer-mas {
    font-size: 0.82rem;
    font-weight: 700;
    color: #7B2D8B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-leer-mas:hover { color: #621F72; text-decoration: underline; }

/* ==========================================================================
   BOTÓN VOLVER ARRIBA
   ========================================================================== */
.btn-volver-arriba {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #7B2D8B;
    color: #ffffff;
    border: none;
    cursor: pointer;
    padding: 14px 14px;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(123, 45, 139, 0.4);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    will-change: transform;
}

.btn-volver-arriba:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 32px rgba(123, 45, 139, 0.55);
}

.btn-volver-arriba.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.btn-whatsapp-flotante {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 14px;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsapp-entrada 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 1s;
    will-change: transform;
}

.btn-whatsapp-label { display: inline; }

.btn-whatsapp-flotante:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

@keyframes whatsapp-entrada {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   POPUP EN CONSTRUCCIÓN
   ========================================================================== */
.popup-construccion {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.popup-construccion.visible {
    opacity: 1;
    pointer-events: auto;
}

.popup-construccion-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.25s ease;
}

.popup-construccion.visible .popup-construccion-card {
    transform: translateY(0) scale(1);
}

.popup-construccion-icono { font-size: 3rem; margin-bottom: 16px; }

.popup-construccion-titulo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.popup-construccion-texto {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 28px;
}

.popup-construccion-botones {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-btn-whatsapp {
    display: block;
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.popup-btn-cerrar {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 11px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-btn-cerrar:hover {
    border-color: #7B2D8B;
    color: #7B2D8B;
}

/* Optimización de render */
.carrusel-track { will-change: transform; }
.blog-card, .producto-card { will-change: transform; }

/* ==========================================================================
   CARDS ACADEMIA — CENTRADO
   ========================================================================== */
.programa-tarjeta {
    align-items: center;
    text-align: center;
}

.programa-tag { text-align: center; }
.programa-texto { text-align: center; }




@media (max-width: 1024px) {
    .carrusel-slide {
        flex-direction: column-reverse;
        gap: 20px;
        padding: 30px 20px 40px 20px;
        min-height: auto !important;  /* ← elimina la altura mínima fija */
        height: auto !important;
        overflow: visible;            /* ← permite que el contenido sea visible */
    }

    .carrusel-ventana-global {
        overflow: hidden;             /* ← el recorte lo hace el contenedor, no el slide */
    }

    .hero-contenido {
        overflow: visible;            /* ← no cortar el contenido */
        min-width: 0;
    }

    .btn-servicio-cta {
        min-height: 48px;
        padding: 14px 28px;
        width: 100%;
        text-align: center;
    }

    .btn-cotizar {
        min-height: unset;
        padding: 10px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-card-carrito {
        width: 44px;
        height: 44px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .blog-card-destacada {
        grid-row: span 1;
    }

    .blog-card-destacada .blog-img-wrapper {
        height: 220px;
        min-height: unset;
        flex: none;
    }
}


/* Desktop */
.carrusel-slide {
    align-items: center;
    overflow: visible;  /* ← cambiar de hidden a visible */
   margin: 10px 20px;
}
