/* ==========================================================================
   DISEÑO PREMIUM: DRA. CARMINA LÓPEZ — MEDICINA INTERNA Y SALUD METABÓLICA
   ========================================================================== */

:root {
    /* Paleta de Colores Oficial del Logo */
    --primary: #a08391;          /* Color Secundario: Muted Dusty Plum / Mauve (para legibilidad y botones) */
    --primary-light: #c3a6b5;
    --primary-dark: #826273;
    
    --secondary: #fbd4be;        /* Color Principal: Soft Peach / Coral (rellenos y acentos) */
    --secondary-light: #fde8dd;
    
    --gold: #cfae8b;             /* Dorado de Subtítulo y Nombre (para texto destacado y badges) */
    --gold-light: #f6efe8;
    
    --accent: #fbd4be;           
    --bg-warm-light: #fbf5f1;    /* Fondo crema suave con base coral */
    --bg-white: #ffffff;
    
    /* Tonos Oscuros para Contenido Inmersivo (Hero/Footer) */
    --bg-dark: #1f171c;          /* Deep Plum/Slate */
    --bg-dark-accent: #2c2027;   /* Rich Mauve-Black */
    
    /* Textos */
    --text-dark: #2a2024;        /* Deep Charcoal with Plum undertones */
    --text-muted: #6a5760;
    --text-light: #fefcfb;
    
    /* Efectos y bordes */
    --border-color: rgba(160, 131, 145, 0.2);
    --border-color-light: rgba(251, 212, 190, 0.4);
    --shadow-soft: 0 10px 30px rgba(42, 32, 36, 0.05);
    --shadow-medium: 0 15px 35px rgba(42, 32, 36, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 23, 28, 0.35);
    
    /* Transiciones */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Fuentes */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: #faf7f5;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-dark);
}

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

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

/* ==========================================================================
   COMPONENTES DE DISEÑO COMUNES (BOTONES, BADGES)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(162, 128, 147, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 128, 147, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--text-light);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background-color: var(--bg-warm-light);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--bg-warm-light);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.badge-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Pulsación de Corazón (Heartbeat) */
@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.05); }
    28% { transform: scale(1); }
    42% { transform: scale(1.05); }
    70% { transform: scale(1); }
}

.pulse-heartbeat {
    animation: heartbeat 3s infinite ease-in-out;
}

/* ==========================================================================
   TOP BAR & HEADER NAVBAR
   ========================================================================== */

.top-bar {
    background-color: var(--bg-dark-accent);
    color: rgba(254, 252, 251, 0.7);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item a {
    color: var(--text-light);
    font-weight: 500;
}

.top-bar-item svg {
    stroke: var(--secondary);
}

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.site-navbar.scrolled {
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(44, 32, 38, 0.05);
}

.site-navbar.scrolled .nav-logo img {
    height: 60px;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-text {
    display: none; /* Oculto ya que el nuevo logo oficial ya incluye el nombre y especialidad de la doctora */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 6px 0;
}

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

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

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

.nav-cta {
    padding: 10px 22px;
    font-size: 0.88rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition-smooth);
}

/* Responsive navbar */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(44, 32, 38, 0.1);
        border-top: 1px solid var(--border-color);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition-smooth);
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .hidden-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   SECCIÓN 1: HERO CINEMÁTICO "FLORECER DESDE ADENTRO"
   3 Capas: Video → Canvas Pétalos → Contenido Cinemático
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 92vh;
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding: 100px 0 140px 0;
    overflow: hidden;
    background: #0e0a0c; /* Fallback mientras carga el video */
}

/* --- Capa 1: Video de Fondo --- */
.hero-video-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-layer video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    will-change: transform;
}

.hero-video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        135deg,
        rgba(14, 10, 12, 0.75) 0%,
        rgba(31, 23, 28, 0.6) 40%,
        rgba(14, 10, 12, 0.7) 100%
    );
    z-index: 1;
}

/* --- Capa 2: Canvas de Pétalos Interactivos --- */
#petal-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    pointer-events: auto;
}

/* --- Mariposas SVG Animadas (Múltiples y Más Grandes) --- */
.hero-butterfly {
    position: absolute;
    z-index: 3;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(251,212,190,0.35));
    pointer-events: none;
}

.hero-butterfly.b-1 {
    width: 95px;
    height: 70px;
    animation: butterflyFlight1 20s ease-in-out 2s infinite;
}

.hero-butterfly.b-2 {
    width: 80px;
    height: 60px;
    animation: butterflyFlight2 22s ease-in-out 6s infinite;
}

.hero-butterfly.b-3 {
    width: 65px;
    height: 50px;
    animation: butterflyFlight3 18s ease-in-out 11s infinite;
}

@keyframes butterflyFlight1 {
    0%   { left: -10%; top: 60%; opacity: 0; transform: rotate(-10deg) scale(0.7); }
    5%   { opacity: 0.75; }
    25%  { left: 20%; top: 40%; transform: rotate(5deg) scale(1); }
    50%  { left: 50%; top: 55%; transform: rotate(-5deg) scale(1.1); }
    75%  { left: 80%; top: 35%; transform: rotate(10deg) scale(0.9); }
    95%  { left: 102%; top: 50%; opacity: 0.75; }
    100% { left: 112%; top: 45%; opacity: 0; transform: rotate(0deg) scale(0.7); }
}

@keyframes butterflyFlight2 {
    0%   { left: -10%; top: 35%; opacity: 0; transform: rotate(15deg) scale(0.7); }
    5%   { opacity: 0.65; }
    30%  { left: 25%; top: 50%; transform: rotate(-8deg) scale(0.95); }
    55%  { left: 55%; top: 30%; transform: rotate(12deg) scale(1.05); }
    80%  { left: 85%; top: 48%; transform: rotate(-4deg) scale(0.85); }
    95%  { left: 102%; top: 35%; opacity: 0.65; }
    100% { left: 112%; top: 30%; opacity: 0; transform: rotate(0deg) scale(0.7); }
}

@keyframes butterflyFlight3 {
    0%   { left: -10%; top: 75%; opacity: 0; transform: rotate(-5deg) scale(0.6); }
    5%   { opacity: 0.6; }
    20%  { left: 15%; top: 60%; transform: rotate(8deg) scale(0.85); }
    45%  { left: 45%; top: 45%; transform: rotate(-12deg) scale(1.0); }
    70%  { left: 75%; top: 65%; transform: rotate(6deg) scale(0.8); }
    95%  { left: 102%; top: 50%; opacity: 0.6; }
    100% { left: 112%; top: 55%; opacity: 0; transform: rotate(0deg) scale(0.6); }
}

.butterfly-body {
    animation: butterflyWings 0.35s ease-in-out infinite alternate;
}

@keyframes butterflyWings {
    0%   { transform: scaleX(1); }
    100% { transform: scaleX(0.5); } /* Aleteo más pronunciado */
}

/* --- Resplandor radial sutil detrás del contenido --- */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at 70% 50%, rgba(251,212,190,0.06) 0%, transparent 60%);
    z-index: 2;
    pointer-events: none;
}

/* --- Capa 3: Contenido Centrado --- */
.hero-container {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 780px;
    text-align: center;
}

/* Animación de entrada cinemática escalonada */
.hero-stagger {
    opacity: 0;
    transform: translateY(30px);
    animation: heroStaggerIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-stagger-1 { animation-delay: 0.3s; }
.hero-stagger-2 { animation-delay: 0.6s; }
.hero-stagger-3 { animation-delay: 0.95s; }
.hero-stagger-4 { animation-delay: 1.25s; }

@keyframes heroStaggerIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Título Hero */
.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    line-height: 1.15;
}

/* Palabras con gradiente animado "bloom" */
.text-bloom {
    background: linear-gradient(90deg, var(--secondary), var(--gold), var(--secondary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textBloomPulse 4s ease-in-out infinite;
}

@keyframes textBloomPulse {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(254, 252, 251, 0.82);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Utilidad para ocultar br en móvil --- */
.hide-mobile { display: inline; }

/* --- Responsivo Hero --- */
@media (max-width: 992px) {
    .hero-section {
        min-height: 75vh;
        padding: 80px 0 80px 0;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }

    .hide-mobile { display: none; }

    .hero-butterfly {
        width: 40px;
        height: 30px;
    }
}

/* ==========================================================================
   SECCIÓN 2: BARRA DE ESTADÍSTICAS DE CONFIANZA
   ========================================================================== */

.stats-bar {
    padding: 48px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: 6px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

@media (max-width: 768px) {
    .stats-row { gap: 24px; }
    .stat-divider { display: none; }
    .stat-item { flex: 0 0 40%; }
}

/* ==========================================================================
   COMPONENTES DE DISEÑO COMPARTIDOS (NUEVO)
   ========================================================================== */

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
}

.section-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    border-radius: 2px;
}

.section-center {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 56px auto;
}

.section-center .section-eyebrow {
    padding-left: 0;
}

.section-center .section-eyebrow::before {
    display: none;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 8px;
}

/* ==========================================================================
   SECCIÓN 3: AUTORIDAD Y CÉDULAS (REDISEÑO)
   ========================================================================== */

.authority-section {
    padding: 100px 0;
    background-color: #faf7f5;
}

.authority-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 72px;
    align-items: center;
}

.authority-left { position: relative; }

.authority-photo-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.authority-photo {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.photo-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--gold), var(--primary));
    border-radius: 0 0 20px 20px;
}

.authority-right {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 24px;
}

.bio-paragraph {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Cédulas como píldoras modernas */
.cedulas-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.cedula-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: 14px;
    transition: var(--transition-smooth);
}

.cedula-pill:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-soft);
    transform: translateX(4px);
}

.cedula-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cedula-pill strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cedula-pill span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .authority-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .authority-left {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   SECCIÓN: TRAYECTORIA Y ACREDITACIONES CIENTÍFICAS
   ========================================================================== */

.trajectory-section {
    padding: 100px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.trajectory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.trajectory-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Timeline Izquierda */
.timeline-container {
    position: relative;
    padding-left: 28px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), var(--primary), var(--secondary));
    opacity: 0.35;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gold);
    border: 2px solid var(--bg-white);
    box-shadow: 0 0 0 4px rgba(207, 174, 139, 0.25);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--primary);
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Tarjetas de Acreditación Premium Derecha */
.accreditations-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accreditation-card-premium {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accreditation-card-premium:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 16px 40px rgba(160, 131, 145, 0.08);
}

.accred-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.accred-badge {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 1px;
}

.accred-issuer {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
}

.accred-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.accred-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .trajectory-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ==========================================================================
   SECCIÓN 4: ESPECIALIDADES (TARJETAS CON ÍCONOS)
   ========================================================================== */

.specialties-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.specialty-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(160, 131, 145, 0.12);
    border-color: var(--primary-light);
}

.specialty-card:hover::before {
    opacity: 1;
}

.specialty-icon {
    font-size: 2rem;
    margin-bottom: 18px;
    display: inline-block;
}

.specialty-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.specialty-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .specialties-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SECCIÓN 5: GALERÍA
   ========================================================================== */

.gallery-section {
    padding: 100px 0;
    background-color: #faf7f5;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ==========================================================================
   SECCIÓN 6: PRENSA (REDISEÑO HORIZONTAL)
   ========================================================================== */

.press-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

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

.press-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.press-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.press-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(160, 131, 145, 0.1);
    border-color: var(--primary-light);
}

.press-card-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
}

.press-card-body { flex: 1; }

.press-card-source {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
}

.press-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 10px;
}

.press-card-readmore {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
}

.press-card-readmore span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.press-card:hover .press-card-readmore span {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .press-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECCIÓN 7 & 8: BLOG & TESTIMONIOS
   ========================================================================== */

.blog-section, .testimonials-section {
    padding: 100px 0;
}

.blog-section {
    background-color: #faf7f5;
}

.testimonials-section {
    background-color: var(--bg-white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-header-left {
    max-width: 600px;
}

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

/* Blog Cards */
.blog-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(160, 131, 145, 0.1);
    border-color: var(--primary-light);
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-warm-light);
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark-accent), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.blog-card-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.blog-card-title a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

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

.blog-card-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.blog-card-link {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.blog-card-link:hover {
    color: var(--primary-dark);
}

/* Testimonial Cards */
.testimonial-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(160, 131, 145, 0.08);
    border-color: var(--primary-light);
}

.testimonial-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.testimonial-quote-icon {
    color: var(--secondary);
    opacity: 0.5;
    flex-shrink: 0;
}

.testimonial-stars {
    color: #fbbc04;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.testimonial-quote {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.testimonial-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .cards-grid-3 {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   SECCIÓN 9: UBICACIÓN Y MAPA
   ========================================================================== */

.location-section {
    padding: 100px 0;
    background-color: #faf7f5;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: center;
}

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

.location-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.location-detail-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-detail strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.location-detail p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.location-map {
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
    border: 1px solid var(--border-color);
}

.location-map iframe {
    display: block;
}

@media (max-width: 992px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
    .location-map {
        height: 300px;
    }
}

/* ==========================================================================
   PÁGINAS INTERNAS (BLOG, ARTICULO, TESTIMONIOS, RESEÑAS)
   ========================================================================== */

.page-header {
    background: linear-gradient(135deg, #181115 0%, #251a21 100%);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--text-light);
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.page-header p {
    color: rgba(254, 252, 251, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog listado */
.blog-featured-card {
    background-color: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    margin-top: -40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.blog-featured-img {
    height: 100%;
    min-height: 380px;
    background-color: var(--bg-warm-light);
}

.blog-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 992px) {
    .blog-featured-card {
        grid-template-columns: 1fr;
    }
    
    .blog-featured-img {
        min-height: 250px;
    }
}

/* Layout Artículo */
.article-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 48px;
    padding: 60px 0;
}

.article-content {
    background-color: var(--bg-white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(160, 131, 145, 0.04);
    border: 1px solid var(--border-color);
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.art-lead {
    font-size: 1.25rem;
    line-height: 1.65;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 36px;
    padding-left: 20px;
    border-left: 3px solid var(--gold);
}

.art-body {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.art-body p {
    margin-bottom: 24px;
    text-align: justify;
}

.art-body h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 48px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.art-body h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
}

.art-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 36px 0 16px 0;
}

.art-body ul {
    list-style: none;
    margin-bottom: 28px;
    padding-left: 0;
}

.art-body ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.art-body ul li::before {
    content: '✦';
    position: absolute;
    left: 4px;
    color: var(--gold);
    font-size: 0.9rem;
}

.art-body ol {
    margin-bottom: 28px;
    padding-left: 20px;
}

.art-body ol li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.art-body strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.art-body blockquote {
    background: #faf7f5;
    border-left: 4px solid var(--primary);
    padding: 24px 30px;
    margin: 32px 0;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-warm-light);
    padding-bottom: 10px;
}

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

.recent-article-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.recent-article-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--bg-warm-light);
}

.recent-article-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.recent-article-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.sidebar-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    border: 4px solid var(--bg-warm-light);
    object-fit: cover;
}

@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FORMULARIO DE RESEÑAS (RESEÑAS.PHP)
   ========================================================================== */

.form-card {
    background-color: var(--bg-white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: -40px auto 60px auto;
    position: relative;
    z-index: 10;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #faf7f5;
    transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(162, 128, 147, 0.1);
}

/* Estrellas Interactivas */
.star-rating-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}

#star-rating {
    display: flex;
    gap: 8px;
}

#star-rating span {
    font-size: 2.2rem;
    cursor: pointer;
    color: #ccc;
    transition: var(--transition-smooth);
    user-select: none;
}

#star-rating span:hover {
    transform: scale(1.15);
}

.mensaje-exito {
    background-color: #e6f4ea;
    color: #137333;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #c2e7cd;
}

.mensaje-error {
    background-color: #fce8e6;
    color: #c5221f;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #fad2cf;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0;
}

.pagination-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.pagination-link:hover, .pagination-link.active {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

/* ==========================================================================
   FOOTER, MODALES & FLOATING BUTTONS
   ========================================================================== */

.site-footer {
    background-color: var(--bg-dark);
    color: rgba(254, 252, 251, 0.7);
    padding: 80px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

/* Tarjeta de Ubicación en Footer */
.footer-location-card {
    display: flex;
    gap: 16px;
    background-color: var(--bg-dark-accent);
    border: 1px solid rgba(207, 177, 154, 0.15);
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.footer-location-card:hover {
    background-color: rgba(207, 177, 154, 0.06);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.location-icon svg {
    stroke: var(--secondary);
}

.location-details h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 6px;
}

.location-details p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(254, 252, 251, 0.6);
}

.btn-text-link {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
}

/* Tabla de costos */
.footer-costs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.footer-costs-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-costs-table td.price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
    text-align: right;
}

.costs-note {
    font-size: 0.75rem;
    color: rgba(254, 252, 251, 0.4);
}

/* Lista de Contacto */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(254, 252, 251, 0.4);
}

.contact-value {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 2px;
}

.footer-contact-list a:hover {
    color: var(--secondary);
}

/* Bottom Footer */
.footer-bottom {
    background-color: var(--bg-dark-accent);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.85rem;
}

.legal-info {
    font-size: 0.8rem;
    color: rgba(254, 252, 251, 0.5);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Modales */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 17, 21, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

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

.modal-container {
    background-color: var(--bg-white);
    border-radius: 24px;
    width: 90%;
    max-width: 750px;
    padding: 35px;
    position: relative;
    box-shadow: var(--shadow-medium);
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--primary);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.map-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.map-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
}

.float-phone {
    background-color: var(--primary);
}

.float-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}

.float-whatsapp {
    background-color: #25d366;
}

@media (max-width: 576px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
    }
}

/* ==========================================================================
   ANIMACIONES GENERALES Y REVELACIÓN EN SCROLL
   ========================================================================== */

.dr-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.dr-animate {
    opacity: 1;
    transform: translateY(0);
}
