/*
Theme Name: Hub Child
Theme URI: http://hub.liquid-themes.com/
Author: Liquid Themes
Author URI: https://themeforest.net/user/liquidthemes
Template: hub
Description: Smart, Powerful and Unlimited Customizable WordPress Theme.
Version: 1.0
License: GNU General Public License
License URI: license.txt
Text Domain: hub-child
Tags: responsive, retina, rtl-language-support, blog, portfolio, custom-colors, live-editor
*/


@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

/* --- CUSTOM VARIABLES & DESIGN SYSTEM --- */
:root {
    /* Brand Colors */
    --primary: #018080;
    --primary-rgb: 1, 128, 128;
    --primary-light: #029999;
    --primary-dark: #005f5f;
    --primary-glow: rgba(1, 128, 128, 0.08);
    --primary-glow-strong: rgba(1, 128, 128, 0.2);
    
    /* Secondary & Accent Colors */
    --accent: #d4af37; /* Editorial Gold Accent */
    --accent-rgb: 212, 175, 55;
    --accent-red: #cc4e4e;
    
    /* Medical Premium Backgrounds */
    --bg-dark: #080d0d;
    --bg-dark-rgb: 8, 13, 13;
    --bg-light: #fcfcfc;
    --bg-light-rgb: 252, 252, 252;
    --bg-card-light: #ffffff;
    --bg-card-dark: rgba(14, 25, 25, 0.85);
    
    /* Text Hierarchy */
    --text-dark: #0e1d1d;
    --text-light: #f3fafb;
    --text-muted-dark: #587171;
    --text-muted-light: #a3bfbf;
    
    /* Borders & Glassmorphism */
    --border-light: rgba(1, 128, 128, 0.08);
    --border-dark: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-dark: rgba(8, 13, 13, 0.7);
    --glass-blur: blur(16px);
    
    /* Shadows & Transitions */
    --shadow-sm: 0 4px 12px rgba(1, 128, 128, 0.03);
    --shadow-md: 0 12px 32px rgba(1, 128, 128, 0.06);
    --shadow-lg: 0 20px 48px rgba(1, 128, 128, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Typographies */
    --font-sans: 'Red Hat Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: var(--font-sans);
    --font-title: 'acumin-pro-extra-condensed', 'Acumin Extra Condensed', 'Acumin Pro Extra Condensed', 'Acumin', var(--font-sans);
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- BASE STYLES & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background-color: #ffffff;
    background-image:
        radial-gradient(ellipse 80% 40% at 10% 15%, rgba(0, 160, 150, 0.055) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 85% 40%, rgba(1, 128, 128, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse 90% 40% at 40% 70%, rgba(0, 180, 160, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 35% at 75% 90%, rgba(0, 160, 150, 0.04) 0%, transparent 55%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #eef2f2;
}
::-webkit-scrollbar-thumb {
    background: #b2c9c9;
    border-radius: var(--radius-sm);
    border: 2px solid #eef2f2;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- TYPOGRAPHY UTILITIES --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

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

.text-accent-serif {
    font-family: var(--font-title);
    font-style: normal;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
}

.text-accent-uppercase {
    font-family: var(--font-title);
    font-style: normal;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
}

/* --- BRAND TEXTURE OVERLAYS --- */
.section-with-texture {
    position: relative;
}

.section-with-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/texture.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* stronger visual brand identity */
    pointer-events: none;
    z-index: 0;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-dark);
}

.text-outline-light {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-light);
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #004d4d;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: transparent;
    border: 1px solid #004d4d;
    border-radius: var(--radius-full);
}

.section-tag::after {
    display: none;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    max-width: 100%;
    color: #004d4d;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted-dark);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #004d4d;
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #005f5f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 77, 77, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: #004d4d;
    border-color: #004d4d;
}

.btn-secondary:hover {
    background-color: rgba(0, 77, 77, 0.08);
    transform: translateY(-2px);
}

.btn-white {
    background-color: #ffffff;
    color: #004d4d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

/* --- FLOATING HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85); /* Light glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 2rem; /* Reduced to make it thinner */
    transition: var(--transition-smooth);
}

.header.scrolled .header-container {
    padding: 0.2rem 2rem; /* Even thinner when scrolling */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark); /* Dark logo text */
    letter-spacing: -0.01em;
}

.logo-plus {
    color: var(--primary-light);
    font-size: 1.5rem;
    line-height: 1;
    animation: heartbeat 3s infinite ease-in-out;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted-dark);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    padding: 0.25rem 0;
    transition: var(--transition-fast);
}

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

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

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

/* --- DROPDOWN MENU --- */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
    padding: 1rem 0; /* Expanded hit area */
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    min-width: 240px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border-light);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    padding-left: 2rem;
}

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

.header-cta .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.02em;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

/* --- HERO SLIDER --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-quick-divider {
    width: 100%;
    line-height: 0;
    background-color: transparent;
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin-top: -18vw;
}

@media (max-width: 1440px) {
    .hero-quick-divider {
        margin-top: -14vw;
    }
}

@media (max-width: 1366px) {
    .hero-quick-divider {
        margin-top: -13vw;
    }
}

@media (max-width: 1024px) {
    .hero-quick-divider {
        margin-top: -12vw;
    }
}
@media (max-width: 768px) {
    .hero-quick-divider {
        margin-top: -8vw;
    }
}

.hero-quick-divider img {
    width: 100%;
    height: auto;
    display: block;
    transform: scaleX(-1); /* Horizontally mirrored */
}

.gallery-cta-divider {
    width: 100%;
    line-height: 0;
    background-color: transparent;
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin-top: -6vw;
    margin-bottom: -5px; /* Hides subpixel rendering lines */
}

@media (max-width: 1440px) {
    .gallery-cta-divider {
        margin-top: -5vw;
    }
}

@media (max-width: 1024px) {
    .gallery-cta-divider {
        margin-top: -4vw;
    }
}
@media (max-width: 768px) {
    .gallery-cta-divider {
        margin-top: -2.5vw;
    }
}

.gallery-cta-divider img {
    width: 100%;
    height: auto;
    display: block;
    transform: scaleY(-1) scaleX(-1); /* Mirrored vertically and horizontally */
}

.hero-slide::before {
    display: none;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 3;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: blur(20px) grayscale(100%);
    transition: clip-path 0s ease 1.2s, 
                opacity 0s ease 1.2s, 
                filter 0s ease 1.2s;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: blur(0) grayscale(0%);
    z-index: 2;
    transition: clip-path 1.2s cubic-bezier(0.86, 0, 0.07, 1),
                opacity 0.1s ease,
                filter 1.2s cubic-bezier(0.86, 0, 0.07, 1);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.0);
    transition: transform 8s ease-out; /* Slow zoom-in Ken Burns effect */
    will-change: transform;
}

.hero-slide.active .hero-image {
    transform: scale(1.04); /* Subtle zoom */
}

.hero-white-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.65);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    color: var(--text-dark);
    padding: 0 2rem;
    margin-top: -5rem; /* Shift content upwards to clear the bottom wave */
}

.hero-slide-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #004d4d;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: transparent;
    border: 1px solid #004d4d;
    border-radius: var(--radius-full);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.hero-slide-tag::before {
    display: none;
}

.hero-slide.active .hero-slide-tag {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 5.2rem;
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: 0.03em;
    margin-bottom: 0.8rem;
    color: #004d4d;
    text-shadow: none;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

@media (max-width: 1440px) {
    .hero-title {
        font-size: 3.8rem;
        line-height: 0.92;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
        line-height: 0.95;
    }
}

.hero-title .accent {
    color: var(--primary);
}

.hero-slide.active .hero-title {
    transform: translateY(0);
    opacity: 1;
}

.hero-desc {
    font-size: 1.2rem;
    color: #004d4d;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-shadow: none;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

.hero-slide.active .hero-desc {
    transform: translateY(0);
    opacity: 1;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s;
}

.hero-slide.active .hero-actions {
    transform: translateY(0);
    opacity: 1;
}

.btn-hero-booking {
    background-color: #004d4d;
    color: #ffffff;
    border-radius: var(--radius-full);
    padding: 0.8rem 2rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-hero-booking:hover {
    background-color: #005f5f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 77, 77, 0.25);
}

.btn-whatsapp-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* Slider Navigation */
.hero-controls {
    position: absolute;
    bottom: 6rem;
    right: 15vw;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-btn {
    background: #ebf5fa;
    border: 1px solid rgba(1, 128, 128, 0.15);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.hero-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.hero-dots {
    position: absolute;
    bottom: 6.5rem;
    left: 15vw;
    z-index: 10;
    display: flex;
    gap: 0.75rem;
    align-items: center; /* keep centered when heights differ */
}

@keyframes linePulse {
    0% { width: 40px; background: var(--primary-light); box-shadow: 0 0 10px rgba(1,128,128,0.2); }
    50% { width: 75px; background: var(--primary); box-shadow: 0 0 20px rgba(1,128,128,0.6); }
    100% { width: 40px; background: var(--primary-light); box-shadow: 0 0 10px rgba(1,128,128,0.2); }
}

.hero-dot {
    width: 24px;
    height: 2px; /* Más sutiles */
    background: rgba(255, 255, 255, 0.15); /* Más sutiles */
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: width 0.4s ease, background 0.4s ease;
}

.hero-dot.active {
    background: var(--primary-light);
    width: 40px;
    height: 2px;
    animation: linePulse 2.5s infinite ease-in-out;
}

/* --- VALUES TICKER REMOVED --- */

/* --- QUICK ACTIONS BENTO --- */
.quick-section {
    padding: 6rem 0 6rem 0;
    background-color: transparent;
    margin-top: -6vw;
}

@media (max-width: 1440px) {
    .quick-section {
        margin-top: -6vw;
    }
}

@media (max-width: 1366px) {
    .quick-section {
        margin-top: -5vw;
    }
}

@media (max-width: 1024px) {
    .quick-section {
        margin-top: -4vw;
        padding: 4rem 0 5rem 0;
    }
}
@media (max-width: 768px) {
    .quick-section {
        margin-top: 0;
        padding: 3rem 0 4rem 0;
    }
}

/* Center the decorative line under the section tag */
.quick-section .section-tag::after,
.cobertura-section .section-tag::after,
.manifiesto-slide .section-tag::after,
.testi-section .section-tag::after,
.specs-section .section-tag::after {
    margin-left: auto;
    margin-right: auto;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.quick-card {
    background: #ffffff;
    border: 1px solid var(--border-light); /* Neutral border */
    border-radius: 20px; /* More rounded, modern */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    aspect-ratio: 3 / 2;
    min-height: 120px; /* Slightly shorter */
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    text-decoration: none;
    cursor: pointer;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transform: scaleX(0); /* Animation state 0 */
    transform-origin: left;
    transition: var(--transition-smooth);
    z-index: 2; /* Always visible on top */
}

/* Specific background for the first card like the image */
.quick-card:nth-child(1) {
    background: #ffffff;
}

.quick-card-content {
    margin-top: auto;
    z-index: 2;
    position: relative;
    width: 100%;
}

.quick-card h3 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 500;
    color: #004d4d;
    margin: 0 0 0.6rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #004d4d;
    padding-bottom: 0.4rem;
    width: 100%;
}

.quick-card p {
    font-size: 0.85rem;
    color: var(--text-muted-dark);
    margin: 0;
    line-height: 1.4;
    opacity: 0.8;
}

.custom-card-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    height: 36px;
    width: 36px;
    color: var(--primary);
    opacity: 0.85;
    transition: var(--transition-smooth);
    z-index: 1;
}

/* Hover effects */
.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(0,0,0,0.1);
}

.quick-card:hover::before {
    transform: scaleX(1); /* Fill top line */
}

.quick-card:hover .custom-card-icon {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1));
    opacity: 1;
}

.quick-card-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: var(--primary);
    opacity: 0.4;
    transition: var(--transition-smooth);
    width: 20px;
    height: 20px;
    stroke-width: 1.2px;
}

.quick-card:hover .quick-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}


/* --- SEDES RED --- */
.sedes-section {
    padding: 6rem 0;
    background: transparent;
}

/* --- SEDES ACCORDION --- */
.sedes-accordion {
    display: flex;
    gap: 1.5rem;
    height: 550px;
    width: 100%;
    margin-top: 3rem;
}

.sede-acc-item {
    flex: 1;
    position: relative;
    border-radius: 12px; /* Reduced from var(--radius-lg) to match the cards */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Expanded state */
.sede-acc-item:hover,
.sede-acc-item.active {
    flex: 4; /* makes it take up most of the space */
}

.sede-acc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 13, 13, 0.95) 0%, rgba(8, 13, 13, 0.4) 60%, transparent 100%);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.sede-acc-item:hover .sede-acc-overlay,
.sede-acc-item.active .sede-acc-overlay {
    opacity: 1;
}

.sede-acc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    z-index: 2;
}

.sede-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sede-acc-title-wrapper {
    display: flex;
    align-items: center;
}

.sede-acc-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: white;
    margin: 0;
    white-space: nowrap;
    transition: var(--transition-smooth);
    letter-spacing: -0.02em;
}

.sede-badge-soon {
    font-size: 0.65rem;
    font-family: var(--font-sans);
    font-weight: 800;
    color: #004d4d;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-left: 0.75rem;
    vertical-align: middle;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-block;
    opacity: 1;
    writing-mode: horizontal-tb;
    transition: var(--transition-smooth);
}

/* When compressed, rotate the title so it looks like a spine of a book */
.sede-acc-item:not(:hover):not(.active) .sede-acc-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1.45rem;
    opacity: 0.8;
    letter-spacing: 0.05em; /* Add slight tracking for vertical legibility */
}

/* When compressed, position the badge horizontally at the top of the card so it stays clean and non-deformed */
.sede-acc-item:not(:hover):not(.active) .sede-badge-soon {
    position: absolute;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sede-acc-icon {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    color: #ffffff;
    opacity: 0;
    transition: var(--transition-smooth);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.sede-acc-icon svg {
    width: 22px;
    height: 22px;
}

.sede-acc-item:hover .sede-acc-icon,
.sede-acc-item.active .sede-acc-icon {
    opacity: 1;
}

.sede-acc-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(20px);
}

.sede-acc-item:hover .sede-acc-details,
.sede-acc-item.active .sede-acc-details {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 0.5rem;
}

.sede-acc-address {
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sede-acc-services {
    color: var(--text-muted-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.sede-acc-services strong {
    color: var(--primary-light);
}

.sede-acc-actions {
    display: flex;
    gap: 1rem;
}

.sede-acc-actions .btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
}

@media (max-width: 992px) {
    .sedes-accordion {
        flex-direction: column;
        height: 800px;
    }
    .sede-acc-item:not(:hover):not(.active) .sede-acc-title {
        writing-mode: horizontal-tb;
        transform: none;
    }
}

.manifiesto-section {
    background: transparent;
    padding: 3rem 0 0 0;
    position: relative;
}

.mision-image-fullwidth {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -6.5rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.mision-image-fullwidth img#manifiesto-wave-img {
    width: 350%;
    min-width: 350%;
    max-width: none;
    height: auto;
    display: block;
    margin-left: -25vw;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.manifiesto-content {
    text-align: left;
    position: relative;
    z-index: 2;
}

.manifiesto-rotator {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    margin-bottom: 2rem;
}

.manifiesto-slide {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: translateY(15px);
}

.manifiesto-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.manifiesto-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--text-muted-dark);
    margin-bottom: 3.5rem;
    display: block;
}

.manifiesto-text {
    font-family: var(--font-title);
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin: 0; /* Margin moved to .manifiesto-rotator */
    text-transform: uppercase;
}

.manifiesto-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 4.5rem;
}

.stat-item h3 {
    font-size: 3.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-muted-dark);
}

/* --- COBERTURA --- */
.cobertura-section {
    padding: 2rem 0 6rem 0;
    background: transparent;
    overflow: hidden;
}

.cobertura-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

/* Gradient fade on edges for smooth entry/exit */
.cobertura-carousel-wrapper::before,
.cobertura-carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.cobertura-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, transparent 100%);
}

.cobertura-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, transparent 100%);
}

.cobertura-carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scrollLogos 25s linear infinite;
}

.cobertura-carousel-track:hover {
    animation-play-state: paused;
}

.cobertura-logo-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    width: 190px;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.cobertura-logo-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(0,0,0,0.1);
}

.cobertura-logo-box img {
    max-width: 85%;
    max-height: 60px;
    object-fit: contain;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

/* ================================================
   EQUIPO MEDICO — nueva estructura
   ================================================ */
.team-section {
    padding: 6rem 0 0 0;
    background-color: transparent;
}

/* Header: 2 columnas — izq tag+titulo | der desc+pills */
.team-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.team-header-left { }

.team-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 0.25rem;
}

/* Pills */
.team-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.team-pill {
    border: 1px solid var(--border-light);
    background: #fff;
    padding: 0.42rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted-dark);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.team-pill:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.team-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(1,128,128,0.22);
}

/* Barra de controles: buscador izq + flechas der */
.team-controls-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.team-controls-bar .team-search-wrapper {
    flex: 0 0 50%;
    max-width: 50%;
    margin: 0;
}

.team-search-wrapper {
    position: relative;
}

.team-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted-dark);
    pointer-events: none;
}

.team-search-input {
    width: 100%;
    padding: 0.8rem 1.25rem 0.8rem 2.85rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-fast);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.team-search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(1,128,128,0.1);
}

/* Flechas de navegación */
.team-arrows {
    display: flex;
    gap: 0.55rem;
    margin-left: auto;
}

.team-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-dark);
}

.team-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(1,128,128,0.22);
}

.team-arrow svg { width: 17px; height: 17px; }

/* Carrusel — sin scrollbar visible */
.doc-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.doc-carousel {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- DOC CARD ---- */
.doc-card {
    flex: 0 0 calc(25% - 0.95rem); /* exactamente 4 visibles */
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.38s ease, box-shadow 0.38s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(1, 128, 128, 0.2);
    background: #ffffff !important;
}

/* Overlay teal al hacer hover en la foto */
.doc-card-photo {
    width: 100%;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4eaf4;
    position: relative;
}

.doc-card-photo::after {
    display: none;
}

.doc-card:hover .doc-card-photo::after {
    display: none;
}

.doc-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.5s ease;
    display: block;
}

.doc-card:hover .doc-card-photo img {
    transform: scale(1.07);
}

/* Panel inferior */
.doc-card-body {
    padding: 1.15rem 1.25rem 1.35rem;
    background: #ffffff;
    transition: background 0.38s ease, padding 0.38s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
}

.doc-card:hover .doc-card-body {
    background: #ffffff !important;
}

.doc-card:hover .doc-card-name {
    color: #004d4d !important;
}

.doc-card:hover .doc-card-spec {
    color: var(--primary) !important;
}

.doc-card:hover .doc-turno-btn {
    background: #004d4d !important;
    color: #ffffff !important;
}

/* Nombre + especialidad (siempre visible) */
.doc-card-rest {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.doc-carousel .doc-card-name {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 300;
    color: #004d4d;
    line-height: 1.05;
    margin: 0;
    letter-spacing: normal;
    text-transform: uppercase;
}

.doc-carousel .doc-card-spec {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: none;
    letter-spacing: normal;
}

/* Botón oculto en reposo, visible en hover */
.doc-card-hover-action {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.35s ease;
    margin-top: 0;
}

.doc-card:hover .doc-card-hover-action {
    max-height: 60px;
    opacity: 1;
    margin-top: 1rem;
}

/* Botón de turno — siempre visible */
.doc-turno-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #004d4d;
    border: 1px solid #004d4d;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 1.5rem;
    text-decoration: none;
    width: auto;
    min-width: 130px;
    align-self: center;
    transition: var(--transition-fast);
    margin-top: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}



/* Fila 1: título izq + pills der */
.team-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 1.75rem;
}

.team-top-titles { flex: 1; }

.team-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0.25rem;
}

.team-pill {
    border: 1px solid var(--border-light);
    background: #fff;
    padding: 0.45rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted-dark);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.team-pill:hover { border-color: var(--primary-light); color: var(--primary); }

.team-pill.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(1,128,128,0.2);
}

/* Fila 2: buscador mitad + flechas mitad */
.team-controls-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.team-controls-bar .team-search-wrapper {
    flex: 1;
    max-width: 50%;
    margin: 0;
}

.team-arrows {
    display: flex;
    gap: 0.6rem;
    margin-left: auto;
}

.team-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-dark);
}

.team-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(1,128,128,0.2);
}

.team-arrow svg { width: 18px; height: 18px; }

/* Buscador */
.team-search-wrapper {
    position: relative;
    max-width: 520px;
    margin: 0 auto 3.5rem auto;
}

.team-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--text-muted-dark);
    pointer-events: none;
}

.team-search-input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.team-search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(1,128,128,0.1);
}

/* Carrusel */
.doc-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.doc-carousel {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Doc Card — estilo referencia */
.doc-card {
    flex: 0 0 calc(20% - 1rem); /* 5 visibles */
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(1, 128, 128, 0.2);
    background: #ffffff;
}

/* Foto */
.doc-card-photo {
    width: auto;
    margin: 0.85rem 0.85rem 0 0.85rem;
    border-radius: 8px;
    aspect-ratio: 1.1/1;
    overflow: hidden;
    position: relative;
    background: #ebf5fa;
}

.doc-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
    mix-blend-mode: multiply;
    transform: scale(1.55);
    transform-origin: top center;
}

.doc-card:hover .doc-card-photo img {
    transform: scale(1.62);
}

/* Info debajo */
.doc-card-body {
    padding: 1.1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    background: #ffffff;
    transition: background 0.35s ease;
}

.doc-card:hover .doc-card-body {
    background: #ffffff;
}

.doc-card-name {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 300;
    color: #004d4d;
    line-height: 1.05;
    margin: 0;
    text-transform: uppercase;
}

.doc-card-spec {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: none;
    letter-spacing: normal;
}

/* Íconos de contacto — círculos */
.doc-card-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.doc-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--text-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.doc-icon-btn svg { width: 15px; height: 15px; }

.doc-icon-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1,128,128,0.3);
}



/* Buscador */
.team-search-wrapper {
    position: relative;
    max-width: 520px;
    margin: 0 auto 3.5rem auto;
}

/* Header top bar: título izq + pills der */
.team-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2rem;
}

.team-top-titles {
    flex: 1;
}

.team-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0.25rem;
}

.team-pill {
    border: 1px solid var(--border-light);
    background: #fff;
    padding: 0.5rem 1.1rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted-dark);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.team-pill:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.team-pill.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(1,128,128,0.2);
}

/* Una sola fila scrollable de cards */
.team-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

/* Doc Card simplificada */
.doc-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    border-color: rgba(1,128,128,0.2);
}

.doc-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.doc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.doc-card:hover .doc-card-img img {
    transform: scale(1.04);
}

/* Info + botón debajo de la foto */
.doc-card-info {
    padding: 1rem 1rem 1.1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.doc-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.doc-card-spec {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Botón WhatsApp dentro de la card (abajo) */
.btn-wa-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: #25D366;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition-fast);
    width: 100%;
}

.btn-wa-card svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.btn-wa-card:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
}


.team-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted-dark);
    pointer-events: none;
}

.team-search-input {
    width: 100%;
    padding: 0.9rem 1.25rem 0.9rem 3rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    background: #ffffff;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.team-search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(1, 128, 128, 0.1);
}

/* Grupos por especialidad */
.team-group {
    margin-bottom: 3.5rem;
}

.team-group-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

/* Grid de cards */
.team-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Doc Card */
.doc-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
}

.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    border-color: rgba(1,128,128,0.2);
}

.doc-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.doc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

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

/* Overlay hover */
.doc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,40,40,0.92) 0%, rgba(0,80,80,0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem 1.5rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.doc-card:hover .doc-card-overlay {
    opacity: 1;
}

.doc-card-bio {
    color: rgba(255,255,255,0.88);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    transform: translateY(12px);
    transition: transform 0.35s ease;
}

.doc-card:hover .doc-card-bio {
    transform: translateY(0);
}

.doc-card-actions {
    display: flex;
    gap: 0.6rem;
    transform: translateY(12px);
    transition: transform 0.35s ease 0.05s;
}

.doc-card:hover .doc-card-actions {
    transform: translateY(0);
}

/* Botón WhatsApp */
.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #25D366;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.btn-wa svg {
    width: 14px;
    height: 14px;
}

.btn-wa:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
}

/* Botón pedir turno (overlay) */
.btn-turno {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-turno:hover {
    background: rgba(255,255,255,0.28);
}

/* Info debajo de la foto */
.doc-card-info {
    padding: 1rem 1.25rem 1.25rem;
    background: #fff;
}

.doc-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.doc-card-spec {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- ESPECIALIDADES MINIMALIST CARDS --- */
.specs-section {
    padding: 0 0 6rem 0;
    margin-top: -10rem;
    position: relative;
    z-index: 2;
    background: transparent;
}

.specs-tag::after {
    margin-left: auto;
    margin-right: auto;
}

.specs-minimal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    background-color: transparent;
    border: none;
    max-width: 1000px;
    margin: 0 auto;
}

.spec-minimal-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px !important;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    min-height: 72px;
    height: auto;
}

/* Hide texture background since the card is white */
.spec-minimal-card::before {
    display: none;
}

.spec-minimal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(1, 128, 128, 0.2);
}

.spec-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ebf5fa; /* light blue box */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spec-icon-box svg {
    width: 22px;
    height: 22px;
    color: var(--primary); /* teal icon */
}

.spec-minimal-name {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 500;
    color: #004d4d; /* dark green text */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 1;
    transition: var(--transition-fast);
}

.spec-minimal-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    z-index: 1;
    line-height: 1.4;
}

.spec-minimal-card:hover .spec-minimal-name {
    transform: translateX(4px);
}

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

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

/* --- TESTIMONIALS SLIDER --- */
.testi-section {
    padding: 6rem 0;
    background: transparent;
}

.testi-marquee-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Full bleed effect */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    padding: 1rem 0;
    /* Soft fade on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.testi-marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

/* Animations for tracks */
.track-left {
    animation: scroll-left 45s linear infinite;
}

.track-right {
    animation: scroll-right 50s linear infinite; /* Slightly different speed feels organic */
}

.testi-marquee-track:hover {
    animation-play-state: paused;
}

.testi-card {
    background: #ffffff;
    border: 1px solid rgba(0, 180, 216, 0.15); /* Light cyan border like reference */
    border-radius: 20px;
    padding: 1.5rem;
    width: 360px;
    flex-shrink: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.02);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: var(--transition-fast);
}

.testi-card:hover {
    border-color: rgba(1, 128, 128, 0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testi-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testi-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.testi-author-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testi-author {
    font-size: 1.1rem;
    color: #034f59; /* Dark teal like reference */
    font-weight: 700;
    text-transform: none; /* Reference uses standard case */
    letter-spacing: 0;
    margin: 0;
}

.testi-verified {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.testi-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #6a888c; /* Greyish teal like reference */
    font-weight: 500;
    margin: 0;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.75rem)); }
}

@keyframes scroll-right {
    0% { transform: translateX(calc(-50% - 0.75rem)); }
    100% { transform: translateX(0); }
}

/* --- CALL TO ACTION --- */
.cta-section {
    padding: 6rem 0;
    background-color: transparent;
}

.cta-card {
    background: radial-gradient(circle at 80% 20%, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 12px;
    padding: 3rem 4rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Mesh Canvas Overlay styling */
.cta-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/recurso-1.png'),
                      radial-gradient(circle at 100% 100%, rgba(255,255,255,0.08) 0%, transparent 40%),
                      radial-gradient(circle at 0% 0%, rgba(255,255,255,0.08) 0%, transparent 40%);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: cover, auto, auto;
    background-position: center, center, center;
    opacity: 0.2; /* subtle texture overlay */
    pointer-events: none;
    z-index: 1;
    filter: brightness(0) invert(1);
    animation: ctaMeshFloat 25s ease-in-out infinite alternate;
}

@keyframes ctaMeshFloat {
    0% { transform: scale(1.15) translate(0, 0); }
    100% { transform: scale(1.15) translate(-4%, 6%); }
}

.cta-word {
    display: inline-block;
    /* Default visible as fallback */
}

.cta-title.is-visible .cta-word {
    animation: ctaWordReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--delay);
}

@keyframes ctaWordReveal {
    0% {
        opacity: 0;
        transform: translateY(15px);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.cta-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cta-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--text-muted-light);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
}

.cta-title {
    font-family: var(--font-title);
    font-size: 2.75rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--text-muted-light);
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
}
/* --- GALLERY SECTION --- */
.gallery-section {
    padding: 2rem 0 0 0;
    background: transparent;
}

.gallery-grid {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    max-width: 100%;
    height: 400px;
    margin: 0 auto;
}

.gallery-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.gallery-item:hover {
    flex: 4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* --- FOOTER --- */
.footer {
    background-color: #f8fafb;
    color: var(--text-dark);
    padding: 6rem 0 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 50px; /* Pushed down a bit */
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    background-image: url('assets/recurso-3-footer.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    transform: scaleY(-1);
}

.footer > .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 4fr repeat(3, 2.5fr);
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo-col p {
    font-size: 0.9rem;
    color: var(--text-muted-dark);
    margin-top: 1.25rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: normal;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

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

.footer-link {
    font-size: 0.9rem;
    color: var(--text-muted-dark);
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted-dark);
}

.footer-credits span {
    color: var(--primary-light);
}

/* --- PREMIUM INTERACTIVE MODALS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 14, 14, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 1.5rem;
}

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

.modal-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 580px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    background-color: var(--bg-light);
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-close {
    border: none;
    background: none;
    color: var(--text-muted-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

/* Dynamic Forms inside modal */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    outline: none;
    background-color: var(--bg-light);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(1, 128, 128, 0.08);
}

.modal-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

/* Insurances Coverage alphabetic table */
.coverage-modal-body {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.coverage-letter-group {
    margin-bottom: 2rem;
}

.coverage-letter-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
}

.coverage-list-inline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.coverage-item-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.25rem 0;
}

/* Payment Info Modal details */
.payment-info-box {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.payment-method-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.payment-method-icon {
    color: var(--primary);
    margin-top: 0.2rem;
}

.payment-method-details h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.payment-method-details p {
    font-size: 0.85rem;
    color: var(--text-muted-dark);
    line-height: 1.4;
}

/* --- ANIMATIONS --- */
@keyframes ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes fadeEffect {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sedes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .cobertura-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* removed specs-grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .nav-menu {
        display: none; /* In a production scenario, we'll implement a mobile burger drawer */
    }
    .header-cta {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 4rem; /* Increased significantly */
    }
    .manifiesto-text {
        font-size: 1.85rem;
    }
    .manifiesto-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .cobertura-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-card {
        padding: 3.5rem 2rem;
    }
    .cta-title {
        font-size: 2rem;
    }
    .cta-actions {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .quick-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Border radius updates for all cards */
.quick-card, .doc-card, .spec-minimal-card, .testi-card { border-radius: 12px !important; }

/* Responsive Wave Divider */
.team-divider-fullwidth {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -8rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.specs-section {
    padding-top: 9rem;
}

@media (min-width: 1366px) {
    .mision-image-fullwidth {
        margin-top: -6rem;
    }
}

@media (min-width: 1920px) {
    .mision-image-fullwidth {
        margin-top: -5.5rem;
    }
}

@media (max-width: 1440px) {
    .team-divider-fullwidth {
        margin-top: -8rem;
    }
}

@media (max-width: 1366px) {
    .team-divider-fullwidth {
        margin-top: -8rem;
    }
}

@media (max-width: 1280px) {
    .team-divider-fullwidth {
        margin-top: -10rem;
    }
}

@media (max-width: 1024px) {
    .team-divider-fullwidth {
        margin-top: -12rem;
    }
}

@media (max-width: 768px) {
    .team-divider-fullwidth {
        margin-top: -6rem;
    }
}

/* =============================================
   FLOATING WHATSAPP BUTTON
   ============================================= */
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50%       { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}
@keyframes whatsappEntry {
    from { opacity: 0; transform: scale(0.5) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    animation: whatsappEntry 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both,
               whatsappPulse 2.5s ease-in-out 1.5s infinite;
    transition: transform 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    transform: scale(1.08);
}

.whatsapp-float svg {
    flex-shrink: 0;
}

.whatsapp-float-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    color: #fff;
    font-size: 0.78rem;
    font-family: var(--font-body, sans-serif);
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.whatsapp-float-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1a1a1a;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
}

/* =============================================
   SUBTLE SECTION GRADIENTS
   Soft teal/greenish washes to break flatness
   and blur hard section boundaries
   ============================================= */

/* Acceso rápido – light teal wash top-left */
.quick-section {
    background: radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0, 150, 140, 0.055) 0%, transparent 70%) !important;
}

/* Sedes – warm teal glow bottom-right */
.sedes-section {
    background: radial-gradient(ellipse 70% 50% at 90% 100%, rgba(4, 86, 84, 0.06) 0%, transparent 70%);
}

/* Especialidades/Servicios – soft blue-green center */
.specs-section {
    background: radial-gradient(ellipse 90% 60% at 50% 30%, rgba(0, 160, 150, 0.05) 0%, transparent 65%);
}

/* Testimonios – subtle gradient top */
.testi-section {
    background: linear-gradient(180deg, rgba(0, 180, 160, 0.04) 0%, transparent 40%);
}

/* Galería – very faint teal top overlay */
.gallery-section {
    background: linear-gradient(180deg, rgba(4, 86, 84, 0.03) 0%, transparent 30%);
}

/* Coberturas – right side glow */
.cobertura-section {
    background: radial-gradient(ellipse 60% 80% at 95% 50%, rgba(0, 150, 130, 0.05) 0%, transparent 60%) !important;
}

/* Misión / Visión / Valores */
.manifiesto-section {
    background: linear-gradient(135deg, rgba(0, 160, 150, 0.04) 0%, transparent 50%) !important;
}

/* =============================================
   CONTACT PAGE STYLES (contacto.html)
   ============================================= */

/* Contact Hero Banner */
.contact-hero {
    padding: 8.5rem 0 1.5rem 0;
    background: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #004d4d;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: transparent;
    border: 1px solid #004d4d;
    border-radius: var(--radius-full);
}

.contact-hero-title {
    font-family: var(--font-title);
    font-size: 3.2rem;
    font-weight: 500;
    color: #004d4d;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 1.15;
}

.contact-hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    color: var(--text-muted-dark);
    max-width: 720px;
    margin: 0 auto 0.75rem auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Contact Grid & Form Card */
.contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

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

.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 128, 128, 0.08);
}

.contact-form-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.contact-form-desc {
    font-family: var(--font-sans);
    color: var(--text-muted-dark);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

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

@media (max-width: 576px) {
    .form-row-2col {
        grid-template-columns: 1fr;
    }
}

.contact-form-card label {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    display: block;
}

.contact-input, .contact-select, .contact-textarea {
    font-family: var(--font-sans);
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 1px solid #d0e4e4;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #fcfdfe;
    transition: all 0.2s ease;
}

.contact-input:focus, .contact-select:focus, .contact-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}

.btn-contact-submit {
    font-family: var(--font-sans);
    width: auto;
    min-width: 180px;
    padding: 0.75rem 2.25rem;
    background: #004d4d;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-contact-submit:hover {
    background: #005f5f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 77, 77, 0.25);
}

.form-feedback-box {
    font-family: var(--font-sans);
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    display: none;
}

.form-feedback-box.success {
    display: block;
    background-color: #e8f8f5;
    color: #0e6251;
    border: 1px solid #a3e4d7;
}

/* Quick Channels Card */
.channels-side-card {
    background: #edf6f6;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 128, 128, 0.12);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.channels-side-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    background: url('assets/texture.png') no-repeat center bottom / 100% auto;
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.channels-side-card > * {
    position: relative;
    z-index: 2;
}

.channels-side-card h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    margin: 0;
}

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

.channel-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 150, 136, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-info h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    text-transform: none;
}

.channel-info p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-muted-dark);
    margin-bottom: 0.5rem;
}

.channel-link {
    font-family: var(--font-sans);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}

.channel-link:hover {
    text-decoration: underline;
}

/* Sedes Cards Grid */
.sedes-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

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

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

.sede-contact-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(0, 128, 128, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sede-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 128, 128, 0.12);
    border-color: var(--primary);
}

.sede-contact-card h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.sede-badge-tag {
    font-family: var(--font-sans);
    display: inline-block;
    background: rgba(0, 150, 136, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.sede-detail-list {
    font-family: var(--font-sans);
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sede-detail-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: var(--text-muted-dark);
}

.sede-detail-list li i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Interactive Map Container */
.map-interactive-section {
    background: #f4faf9;
    border-radius: 24px;
    padding: 3.5rem;
    margin-bottom: 5rem;
    border: 1px solid rgba(0, 128, 128, 0.1);
}

.map-interactive-section h2 {
    font-family: var(--font-title);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
}

.map-interactive-section p {
    font-family: var(--font-sans);
    color: var(--text-muted-dark);
    font-size: 0.95rem;
}

.map-tabs-wrapper {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.map-tab-btn {
    font-family: var(--font-sans);
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    border: 1px solid #c2e0df;
    background: #ffffff;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.map-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.map-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 6px 15px rgba(0, 128, 128, 0.25);
}

.map-display-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

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

.map-info-panel {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-info-panel h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.map-info-panel p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-muted-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.map-iframe-box {
    width: 100%;
    min-height: 380px;
    height: 100%;
    border: none;
}

/* Obras Sociales Focus Section */
.focus-coberturas-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4fbfb 100%);
    border-radius: 20px;
    padding: 3.5rem;
    border: 1px solid rgba(0, 128, 128, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 5rem;
    text-align: center;
}

.focus-coberturas-card h2 {
    font-family: var(--font-title);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--primary);
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.focus-coberturas-card p {
    font-family: var(--font-sans);
    color: var(--text-muted-dark);
    max-width: 680px;
    margin: 0.75rem auto 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

.focus-prepagas-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2.5rem 0 2rem 0;
}

.prepaga-badge-item {
    background: #ffffff;
    border: 1px solid #d4eceb;
    border-radius: 16px;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.06);
    transition: transform 0.25s ease;
}

.prepaga-badge-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.prepaga-badge-item strong {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
}

/* ==========================================================================
   SERVICIOS Y ESPECIALIDADES PAGE STYLES (servicios.html)
   ========================================================================== */

/* 4.1 Servicios Principales Grid */
.main-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.main-service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 128, 128, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 6px 24px rgba(0, 77, 77, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.main-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 77, 77, 0.1);
    border-color: rgba(0, 128, 128, 0.25);
}

.main-service-card.highlight-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f8 100%);
    border: 1.5px solid rgba(0, 128, 128, 0.2);
}

.service-icon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.service-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(0, 150, 136, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-circle i {
    width: 26px;
    height: 26px;
}

.service-badge-tag {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(0, 128, 128, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
}

.main-service-card h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card-desc {
    font-family: var(--font-sans);
    color: var(--text-muted-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.service-bullets-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-bullets-list li {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.service-bullets-list li i {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* 4.2 Especialidades Destacadas Grid */
.featured-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.75rem;
}

.featured-spec-card {
    background: #ffffff;
    border: 1px solid rgba(0, 128, 128, 0.1);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 77, 77, 0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.featured-spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 77, 77, 0.09);
    border-color: var(--primary);
}

.featured-spec-card.focus-accent {
    border-top: 4px solid var(--primary);
    background: linear-gradient(180deg, #f2f9f9 0%, #ffffff 100%);
}

.spec-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(0, 150, 136, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.spec-card-icon i {
    width: 24px;
    height: 24px;
}

.featured-spec-card h4 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.featured-spec-card p {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-muted-dark);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.btn-spec-link {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-spec-link:hover {
    color: #004d4d;
}

/* 4.3 Directorio Completo & Filtros */
.directory-filter-wrapper {
    background: #edf6f6;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 128, 128, 0.12);
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.search-spec-input {
    width: 100%;
    padding: 1.1rem 1.25rem 1.1rem 3.2rem;
    background: #ffffff;
    border: 1px solid rgba(0, 128, 128, 0.15);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.25s ease;
}

.search-spec-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}

.filter-pills-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-pill-btn {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid rgba(0, 128, 128, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-pill-btn:hover, .filter-pill-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.directory-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.spec-dir-item {
    background: #ffffff;
    border: 1px solid rgba(0, 128, 128, 0.08);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: all 0.25s ease;
}

.spec-dir-item:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 77, 77, 0.07);
    transform: translateY(-2px);
}

.spec-dir-category {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    display: block;
    margin-bottom: 0.3rem;
}

.spec-dir-item h5 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.spec-dir-item p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted-dark);
    margin: 0;
    line-height: 1.4;
}


