/* ==========================================================================
   VARIABLES, BASE Y RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --gs-white: #ffffff;
    --gs-cyan: #1FA6C1;
    --gs-dark: #006A8E;
    --gs-accent: #035d80;
    --gs-gray: #475569;
    --gs-border: #f1f5f9;
    --gs-light-bg: #f8fafc;

    --shadow-sm: 0 2px 8px rgba(0, 106, 142, 0.05);
    --shadow-soft: 0 10px 30px rgba(0, 106, 142, 0.08);
    --shadow-medium: 0 15px 30px rgba(31, 166, 193, 0.15);
    --shadow-deep: 0 20px 40px rgba(0, 106, 142, 0.2);
    --shadow-glow: 0 4px 15px rgba(31, 166, 193, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body { 
    font-family: 'Inter', sans-serif; 
    color: #1e293b;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 40px;
}

.hidden { display: none; }

.text-cyan { color: var(--gs-cyan); }
.text-dark { color: var(--gs-dark); }
.font-bold { font-weight: 700; }
.text-center { 
    text-align: center !important;
    width: 100%;
    display: block; 
}

/* ==========================================================================
   COMPONENTES GLOBALES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    gap: 10px;
}

.btn-primary {
    background-color: var(--gs-cyan);
    color: var(--gs-white);
    animation: subtle-pulse 3s infinite;
}

.btn-primary:hover {
    background-color: var(--gs-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    border-color: var(--gs-white);
    color: var(--gs-white);
}

.btn-outline:hover {
    background-color: var(--gs-white);
    color: var(--gs-dark);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--gs-cyan);
    color: var(--gs-white);
    border-radius: 50px;
    box-shadow: var(--shadow-glow);
}

.btn-dark:hover {
    background-color: var(--gs-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-lg i, 
.btn-lg svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    display: inline-block;
}

.mobile-btn {
    display: block;
    width: 100%;
}

/*Titulos*/
.section-title,
.section-title-white {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 800;
    margin: 40px 0;
    position: relative;
}

.section-title { color: var(--gs-dark); }
.section-title-white { color: var(--gs-white); margin-top: 50px;}

.section-title::after,
.section-title-white::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gs-cyan);
    margin: 15px auto 0;
    border-radius: 2px;
}

@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: var(--gs-white);
    transition: all 0.4s ease;
}

.header.shrink { box-shadow: var(--shadow-soft); }

.header.shrink .navbar { padding: 0.2rem 0; }

/*TopBar*/
.top-bar {
    background-color: var(--gs-dark);
    padding: 0.3rem 0;
    display: none;
}

@media (min-width: 768px) { 
    .top-bar { display: block; } 
}

.top-bar-container {
    padding: 0 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    font-size: 12px;
    font-weight: 500;
    color: var(--gs-white);
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-small {
    width: 1.2rem;
    height: 1.2rem;
    color: var(--gs-cyan);
}

/* Navbar */
.navbar {
    width: 100%;
    background-color: var(--gs-white);
    border-bottom: 1px solid var(--gs-border);
    transition: all 0.4s ease;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.logo-img {
    width: 220px;
    height: 80px;
    object-fit: contain;
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .logo-img {
        width: 320px;
    }

    .header.shrink .logo-img { 
        width: 250px; 
    }
}

/* Menú Escritorio*/
.desktop-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1130px) { 
    .desktop-menu { display: flex; } 
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 700;
    color: var(--gs-dark);
    font-size: 0.95rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, 
.nav-link.active { color: var(--gs-cyan); }

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gs-cyan);
}

.nav-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 20px;
}

/* Menú Móvil*/
.mobile-toggle {
    display: block;
    color: var(--gs-dark);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1130px) {
    .mobile-toggle { display: none; }
    .mobile-menu { display: none; }
}

.mobile-menu {
    background-color: var(--gs-white);
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    z-index: 40;
}

.mobile-nav-link {
    display: block;
    font-weight: 700;
    color: var(--gs-dark);
    font-size: 1.1rem;
    padding: 1rem 0;
    text-decoration: none;
    border-bottom: 1px solid var(--gs-border);
}

.mobile-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
}

/* ==========================================================================
   SECCIONES DE INICIO
   ========================================================================== */

/* Carousel */
.hero-container {
    position: relative;
    height: 72vh;
    min-height: 450px;
    overflow: hidden;
    background-color: #000;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.45);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
    z-index: 20;
}

.hero-content {
    max-width: 850px;
    color: var(--gs-white);
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: var(--shadow-deep);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 25;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--gs-cyan);
    transform: scale(1.3);
}

.dot:hover {
    background-color: var(--gs-white);
}

/* Acceso rápido */
.quick-access {
    padding: 60px 20px;
}

.access-header {
    text-align: center;
    margin-bottom: 50px;
}

.access-header h2 {
    color: var(--gs-dark);
    font-size: 2rem;
    font-weight: 800;
    margin-top: 10px;
    margin-bottom: 5px;
}

.access-header p {
    color: var(--gs-cyan);
    font-size: 1.8rem;
    font-weight: 700;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
}

@media (max-width: 1024px) {
    .access-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

.access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.circle-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--gs-cyan) 0%, var(--gs-dark) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.circle-icon svg, 
.circle-icon i {
    width: 55px !important;
    height: 55px !important;
    color: var(--gs-white);
}

.access-item h3 {
    color: var(--gs-dark);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.access-item p {
    color: var(--gs-gray);
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    max-width: 200px;
}

.access-item:hover .circle-icon {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-deep);
}

.access-item:hover h3 {
    color: var(--gs-cyan);
    transition: color 0.3s ease;
}

/* Especialidades */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .specialties-grid { 
        grid-template-columns: repeat(2, 1fr); 
        padding: 0 15px;
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .specialties-grid { 
        grid-template-columns: 1fr;
    }
}

.specialty-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: var(--gs-dark);
}

.specialty-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-deep); 
}

.specialty-img {
    width: 100%;
    aspect-ratio: 2/3;
    display: block;
    overflow: hidden;
}

.specialty-card:hover img { 
    transform: scale(1.1); 
}

@media (max-width: 1024px) {
    .specialty-img { 
        aspect-ratio: 1/1;
    }
}

.specialty-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.specialty-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 30px 15px 15px;
    background: linear-gradient(to top, rgba(0,106,142,0.9), transparent);
    color: var(--gs-white);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
}

@media (max-width: 1024px) {
    .specialty-card h3 {
        font-size: 1.1rem;
        padding: 20px 10px 10px;
    }
}

.view-all-container {
    margin-top: 30px;
    text-align: center;
}

/* Estadísticas */
.stats-bar {
    background-color: var(--gs-dark);
    padding: 40px 20px;
    color: var(--gs-white);
    margin-top: 40px;
}

@media (max-width: 768px) {
    .stats-bar { 
        padding: 30px 15px; 
    }
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 150px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.stats-bar.is-visible .stat-item {
    opacity: 1;
    transform: translateX(0);
}

.stats-bar.is-visible .stat-item:nth-child(1) { transition-delay: 0.1s; }
.stats-bar.is-visible .stat-item:nth-child(2) { transition-delay: 0.3s; }
.stats-bar.is-visible .stat-item:nth-child(3) { transition-delay: 0.5s; }
.stats-bar.is-visible .stat-item:nth-child(4) { transition-delay: 0.7s; }

.stat-number {
    color: var(--gs-cyan);
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

/* Porque elegirnos */
.why-us {
    margin-bottom: 40px;
}

.features-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 1100px) {
    .features-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-cards-grid { 
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}

.feature-card {
    background: var(--gs-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--gs-cyan); 
    box-shadow: var(--shadow-deep);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(8deg);
    background: linear-gradient(135deg, var(--gs-dark) 0%, var(--gs-cyan) 100%);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gs-cyan) 0%, var(--gs-dark) 100%);
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    color: var(--gs-white);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 15px rgba(31, 166, 193, 0.2);
}

.feature-icon-wrapper svg,
.feature-icon-wrapper i {
    width: 35px !important;
    height: 35px !important;
}

.feature-card h3 {
    color: var(--gs-dark);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    
}

.feature-card p {
    color: var(--gs-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* TikToks */
.tiktok-section {
    padding: 80px 20px;
    background-color: var(--gs-white);
    overflow: hidden; 
}

.tiktok-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 45px;
}

.tiktok-track-container {
    overflow: hidden;
    border-radius: 10px;
}

.tiktok-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.tiktok-card {
    flex: 0 0 calc(33.333% - 14px); 
    max-width: 260px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #000; 
    display: flex;
    flex-direction: column;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16; 
    cursor: pointer;
    overflow: hidden;
}

.tiktok-video-native {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tiktok-card:hover .tiktok-video-native {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
    transition: opacity 0.3 ease;
}

.play-button {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.play-button i, 
.play-button svg {
    width: 65px !important; 
    height: 65px !important;
    stroke-width: 1px;
}

.tiktok-card:hover .play-button {
    transform: scale(1.1);
    color: #ffffff;
}

.tiktok-card.is-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tiktok-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px; 
    height: 60px;
    background: transparent;
    color: var(--gs-cyan);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.tiktok-arrow:hover {
    color: var(--gs-dark);
    transform: translateY(-50%) scale(1.15);
}

.tiktok-arrow.prev { left: -10px; }
.tiktok-arrow.next { right: -10px; }

.tiktok-arrow i, 
.tiktok-arrow svg {
    width: 48px !important;
    height: 48px !important;
    stroke-width: 1.2px;
}

.tiktok-external-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #000; 
    color: #fff !important;
    text-decoration: none;
    padding: 10px 8px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background 0.3s;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.tiktok-external-btn:hover {
    background: linear-gradient(135deg, var(--gs-cyan) 0%, var(--gs-dark) 100%);
}

@media (max-width: 992px) {
    .tiktok-card {
        flex: 0 0 calc(50% - 10px);
        max-width: 240px;
    }
}

@media (max-width: 600px) {
    .tiktok-carousel-wrapper { padding: 0 40px; }
    
    .tiktok-card {
        flex: 0 0 100%;
        max-width: 280px; 
        margin: 0 auto;
    }
    
    .tiktok-arrow {
        width: 32px;
        height: 32px;
    }

    .tiktok-arrow.prev { left: -5px; }
    .tiktok-arrow.next { right: -5px; }
    
    .tiktok-arrow i, 
    .tiktok-arrow svg {
        width: 32px !important;
        height: 32px !important;
    }
}

/* Visítanos */
.visit-us {
    padding: 80px 20px;
    background-color: var(--gs-white);
}

.visit-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.visit-title {
    color: var(--gs-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.visit-details-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.visit-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.visit-detail-item:hover {
    transform: translateX(5px);
}

.visit-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--gs-cyan) 0%, var(--gs-dark) 100%);
    color: var(--gs-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 8px 15px rgba(31, 166, 193, 0.2);
}

.visit-icon svg {
    width: 28px;
    height: 30px;
}

.visit-text p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gs-gray);
    line-height: 1.2;
}

.visit-map-wrapper {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 40px rgba(0,0,0,0.1);
    border: 6px solid var(--gs-white);
    line-height: 0;
}

.visit-map-wrapper iframe {
    width: 100%;
    display: block;
}

@media (max-width: 768px) {
    .visit-us {
        padding: 60px 20px;
    }

    .visit-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .visit-details-list {
        align-items: center;
    }

    .visit-detail-item {
        flex-direction: column;
        gap: 12px;
    }

    .visit-map-wrapper iframe {
        height: 350px;
    }
}

/* ==========================================================================
    SECCIONES DE NOSOTROS
   ========================================================================== */
/* Info Principal */
.about-us-info {
    padding: 20px 0 50px; 
    background: var(--gs-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper { 
    position: relative; 
    z-index: 1;
}

.image-viewport {
    position: relative;
    width: 100%;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 106, 142, 0.2);
    z-index: 2;
    background-color: var(--gs-light);
}

.main-about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    will-change: transform;
}

@media (max-width: 768px) {
    .about-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        text-align: center; 
    }
    
    .image-viewport {
        border-radius: 30px;
    }
}

/* Experience Badge */
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--gs-cyan), var(--gs-dark));
    color: var(--gs-white);
    padding: 15px 25px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(31, 166, 193, 0.4);
    z-index: 10;
    border: 4px solid var(--gs-white);
}

.badge-num { 
    font-size: 2.8rem; 
    font-weight: 800; 
    display: block; 
    line-height: 1; 
}

.badge-text { 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.subtitle {
    color: var(--gs-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

.title-main {
    color: var(--gs-dark);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.about-text-content {
    padding-top: 10px;
}

.about-text-content .title-main {
    font-size: clamp(2.2rem, 4vw, 2rem);
}

.about-text-content p {
    font-size: 0.95rem;
    color: var(--gs-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .experience-badge { 
        right: 50%; 
        transform: translateX(50%); 
        bottom: -30px; 
        padding: 12px 25px; 
        min-width: 160px;
    }

    .badge-num {
        font-size: 2.2rem;
    }

    .about-text-content {
        padding-top: 30px;
    }
}

/* Mision/Vision */
.mv-container { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    margin-top: 10px; 
}

.mv-item { 
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 25px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mv-item:hover { 
    transform: translateX(10px); 
    border-color: var(--gs-cyan); 
    box-shadow: 0 10px 30px rgba(31, 166, 193, 0.1);
}

.mv-icon { 
    background: rgba(31, 166, 193, 0.1); 
    width: 54px;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 18px; 
    color: var(--gs-cyan);
    flex-shrink: 0;
}

.mv-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2px;
}

.mv-text h4 { 
    color: var(--gs-dark); 
    font-size: 1rem; 
    font-weight: 800; 
    margin: 0 0 5px 0; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mv-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gs-gray);
}

@media (max-width: 600px) {
    .mv-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 25px;
    }

    .mv-item:hover {
        transform: translateY(-5px);
    }
}

/* Valores */
.our-values { 
    background: linear-gradient(rgba(0, 56, 74, 0.88), rgba(0, 56, 74, 0.88)), 
                url('../assets/us/valores.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 40px 0 50px; 
    text-align: center; 
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px auto 0;
    max-width: 1200px;
}

.value-card { 
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 30px;
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.value-card:hover { 
    transform: translateY(-15px);
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gs-cyan) 0%, var(--gs-dark) 100%);
    color: var(--gs-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(31, 166, 193, 0.3);
}

.icon-circle i, 
.icon-circle svg { 
    width: 35px !important; 
    height: 35px !important; 
    stroke-width: 1.5px;
}

@media (max-width: 768px) {
    .our-values {
        padding: 60px 20px;
        background-attachment: scroll;
    }
    
    .value-card {
        padding: 40px 25px;
    }
}

/* Tecnología */
.our-tech-gallery {
    padding: 80px 20px;
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
}

.tech-grid-standard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.tech-card {
    display: flex;
    flex-direction: column;
    background: var(--gs-white);
    border-radius: 40px;
    padding: 15px; /* Efecto de marco interno */
    border: 1px solid #f1f5f9;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}

.tech-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 106, 142, 0.1);
    border-color: var(--gs-cyan);
}

.tech-card img { 
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 106, 142, 0.1); 
}

.tech-card h4 {
    color: var(--gs-dark);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.tech-card:hover h4 {
    color: var(--gs-cyan);
}

.tech-card p {
    color: var(--gs-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.tech-card:hover h4 {
    color: var(--gs-cyan);
}

.tech-img-hover {
    width: 100%;
    height: 280px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.tech-img-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.tech-card:hover .tech-img-hover img {
    transform: scale(1.1);
}

.tech-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gs-white);
    color: var(--gs-cyan);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.tech-card:hover .tech-badge {
    background: var(--gs-cyan);
    color: var(--gs-white);
    transform: rotate(10deg);
}

.tech-info {
    padding: 25px 15px 15px;
    text-align: center;
}

@media (max-width: 992px) {
    .our-tech-gallery { padding: 60px 20px; }
    
    .tech-grid-standard {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .tech-img-hover { height: 220px; }
    
    .tech-card { padding: 10px; }
    
    .tech-card h4 { font-size: 1.25rem; }
}

/* Convenios */
.our-partners {
    padding: 20px 0;
    background-color: var(--gs-white);
    text-align: center;
}

.partners-grid-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.partner-card {
    background: var(--gs-white);
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gs-white);
    width: 280px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(31, 166, 193, 0.15);
    border-color: var(--gs-cyan);
}

.partner-logo {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .our-partners {
        padding: 60px 20px;
    }

    .partners-grid-simple { 
        gap: 20px; 
    }

    .partner-card { 
        width: calc(50% - 10px);
        min-width: 160px;
        height: 100px;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .partner-card { 
        width: 100%;
        max-width: 250px; 
    }
}

/* CTA */
.cta-section-final { 
    padding: 80px 20px;
}

.cta-glass-box {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--gs-dark) 0%, #014158 100%);
    padding: 80px 50px;
    border-radius: 50px;
    text-align: center;
    color: var(--gs-white);
    box-shadow: 0 25px 60px rgba(0, 106, 142, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-glass-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(31, 166, 193, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-glass-box h2 { 
    font-size: clamp(1.8rem, 4vw, 2.8rem); 
    font-weight: 800; 
    margin-bottom: 25px; 
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.btn-white-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gs-white);
    color: var(--gs-dark);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 15px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-white-premium:hover { 
    background: var(--gs-cyan); 
    color: var(--gs-white); 
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(31, 166, 193, 0.4);
}

@media (max-width: 768px) {
    .cta-section-final { 
        padding: 40px 15px; 
    }

    .cta-glass-box { 
        padding: 60px 25px;
        border-radius: 30px;
    }

    .btn-white-premium {
        padding: 1rem 2rem;
        width: 100%;
        max-width: 300px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--gs-dark);
    color: var(--gs-white);
    padding: 80px 20px 30px;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.5fr;
    gap: 40px;
}

.main-footer h3 {
    color: var(--gs-cyan);
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    width: 250px;
    margin-bottom: 20px;
    align-items: center;
}

.brand-description {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gs-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--gs-cyan);
    transform: translateY(-5px);
    color: var(--gs-white);
}

.social-icon svg, 
.social-icon i {
    width: 18px !important; 
    height: 18px !important;
}

.main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer ul li {
    margin-bottom: 14px;
}

.main-footer a {
    color: var(--gs-white);
    text-decoration: none;
    opacity: 0.75;
    transition: all 0.3s ease;
}

.main-footer a:hover {
    opacity: 1;
    color: var(--gs-cyan);
    padding-left: 5px; /* Efecto sutil de desplazamiento */
}

.contact-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-list li span {
    font-weight: 700;
    color: var(--gs-cyan);
}

.contact-list li:after {
    content: none;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    opacity: 0.5;
    margin: 0;
}

@media (max-width: 992px) { 
    .footer-container { 
        grid-template-columns: 1fr 1fr;
        text-align: center; 
    } 
}

@media (max-width: 600px) {
    .footer-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
}

@media (max-width: 992px) {
    .footer-brand {
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        margin-bottom: 20px; 
    }
    
    .footer-links ul { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }
}
/* ==========================================================================
    SECCIONES DE ESPECIALIDADES
   ========================================================================== */
/* Busqueda */
.specialties-hero {
    padding: 40px 20px;
}

.search-section {
    margin-bottom: 60px;
    z-index: 10;
    position: relative;
    width: 100%;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--gs-cyan);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

#specialty-search, 
#staff-search {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border-radius: 50px;
    border: 2px solid var(--gs-white);
    font-size: 1rem;
    color: var(--gs-dark);
    background-color: var(--gs-white);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 106, 142, 0.05);
}

#specialty-search:focus,
#staff-search:focus {
    outline: none;
    border-color: var(--gs-cyan);
    box-shadow: 0 15px 30px rgba(31, 166, 193, 0.15);
}

#no-results,
#no-staff-results {
    text-align: center;
    margin-top: 40px;
    color: var(--gs-gray);
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Catalogo de Especialidades */
.specialties-catalog{
    padding: 10px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.catalog-card-img {
    background: var(--gs-white);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--gs-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
}

.catalog-card-img:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 106, 142, 0.12);
    border-color: var(--gs-cyan);   
}

.catalog-card-img:hover .btn-text {
    gap: 15px;
}

.card-image-box {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.catalog-card-img:hover .card-image-box img {
    transform: scale(1.1);
}

.card-overlay-gradient{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), transparent);
}

.card-info {
    padding: 30px;
    background: var(--gs-white);
    position: relative;
    margin-top: -30px;
    border-radius: 40px 40px 0 0;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.card-info h3 {
    color: var(--gs-dark);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.card-info p {
    color: var(--gs-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 16px;
    background: rgba(31, 166, 193, 0.1);
    color: var(--gs-cyan);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.btn-text {
    color: var(--gs-cyan);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
    margin-top: auto;
    padding: 15px;
}

.catalog-card-img:hover .btn-text {
    gap: 15px;
}

.btn-secondary-outline {
    background-color: transparent;
    color: var(--gs-cyan);
    border: 2px solid var(--gs-cyan);
    padding: 8px 15px;
    border-radius: 0.5rem;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary-outline:hover {
    background-color: var(--gs-light-bg);
    border-color: var(--gs-dark);
    color: var(--gs-dark);
    transform: translateY(-2px);
}

.btn-nav {
    display: block;
    text-align: center;
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 8px;
    white-space: nowrap;   
    width: 100%;     
    letter-spacing: 0.5px;
}

/* ==========================================================================
    SECCIONES DE STAFF MÉDICO
   =========================================================================
*/

.staff-section {
    padding: 60px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.staff-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.staff-card .card-image-box {
    height: 320px;
    background-color: var(--gs-light);
}

.staff-card .card-info {
    flex-grow: 1;
    min-height: 380px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

.doctor-credentials-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px 0;
}

.credential-badge-text {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doctor-experience-list {
    list-style: none; 
    padding: 0;
    margin: 20px 0;
    text-align: left;
    width: 100%;
    min-height: 200px;
}

.doctor-experience-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--gs-gray);
    line-height: 1.4;
}

.doctor-experience-list li:hover {
    color: var(--gs-dark);
    transition: color 0.3s ease;
}

.doctor-experience-list li i, 
.doctor-experience-list li svg {
    width: 18px !important;
    height: 18px !important;
    color: var(--gs-cyan);
    flex-shrink: 0;
    margin-top: 2px;
}

.doctor-authority {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    margin-top: 30px;
    padding: 0 15px;
}

.staff-card .btn-text {
    background: rgba(31, 166, 193, 0.05);
    padding: 12px 20px;
    border-radius: 50px;
    justify-content: center;
    margin-top: auto;
    transition: all 0.3s ease;
}

.staff-card .btn-text:hover {
    background: var(--gs-cyan);
    color: var(--gs-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(31, 166, 193, 0.3);
}

/* ==========================================================================
    SECCIONES DE CONTACTO
   =========================================================================
*/

.contact-subtitle {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gs-dark);
}

.contact-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-buttons-list .btn {
    display: flex;          
    align-items: center;    
    justify-content: center;  
    width: 100%;             
    animation: none !important;
    gap: 10px;
}

.btn-aesthetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    background-color: transparent;
    border: 2px solid var(--gs-cyan);
    color: var(--gs-cyan);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-aesthetic:hover {
    background-color: var(--gs-cyan);
    color: var(--gs-white);
    transform: translateY(-2px);
}

.btn-aesthetic i, 
.btn-aesthetic svg {
    width: 1.2rem !important;
    height: 1.2rem !important;
    margin-right: 12px;
    flex-shrink: 0;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: -190px;
    h4 {
        text-align: left;
    }
}

.contact-actions-wrapper {
    padding: 30px;
    background-color: var(--gs-white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

@media (min-width: 992px) {
    .contact-info-column {
        margin-top: -190px;
    }
}

@media (max-width: 991px) {
    .contact-info-column {
        margin-top: 0;
        padding: 20px 0;
    }
    
    .contact-actions-wrapper {
        padding: 25px 20px;
    }

    .btn-aesthetic {
        padding: 0.9rem 1rem;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
    SECCIONES DE SERVICIOS
   ========================================================================
*/
.services-modern-container {
    padding: 20px 0;
    margin-bottom: 40px;
    scroll-margin-top: calc(var(--header-height, 80px) + 110px);
}

.services-modern-container h2.section-title {
    text-align: center;
    margin: 40px auto 30px;
    padding: 25px 40px;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--gs-white);
    background: linear-gradient(135deg, var(--gs-dark) 0%, var(--gs-cyan) 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 106, 142, 0.15);
    position: relative;
    left: 0;
    transform: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-row-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--gs-white);
    border-radius: 40px;
    padding: 20px;
    margin-bottom: 40px;
    transition: all 0.4s ease;
    border: 1px solid var(--gs-border);
}

.service-row-card:hover {
    box-shadow: 0 20px 45px rgba(0, 106, 142, 0.08);
    transform: translateY(-5px);
}

.service-row-card.reverse {
    flex-direction: row-reverse;
}

.sr-image {
    flex: 1;
    height: 350px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.sr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-row-card:hover .sr-image img {
    transform: scale(1.08); 
}

.sr-content {
    flex: 1.2;
    padding: 20px;
}

.sr-content h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--gs-dark);
    margin: 10px 0 20px;
    font-weight: 800;
    line-height: 1.1;
}

.sr-content p {
    font-size: 1.1rem;
    color: var(--gs-gray);
    line-height: 1.7;
    margin-bottom: 30px;
}

.services-modern-container h2.section-title::before,
.services-modern-container h2.section-title::after {
    display: none;
}

/* Botón Minimalista para Servicios */
.btn-minimal {
    color: var(--gs-cyan);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    transition: gap 0.3s ease;
}

.btn-minimal:hover {
    gap: 15px;
    color: var(--gs-dark);
}

@media (max-width: 992px) {
    .service-row-card, 
    .service-row-card.reverse {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
        text-align: center;
    }

    .sr-image {
        width: 100%;
        height: 300px;
    }

    .sr-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .services-modern-container h2.section-title {
        font-size: 1.3rem;
        padding: 20px;
        margin: 20px 10px 40px;
    }

    .sr-image {
        height: 220px;
    }
}

/* --- CONFIGURACIÓN DE TABS STICKY --- */
.services-nav-tabs {
    position: sticky;
    top: var(--header-height, 80px);
    z-index: 90;
    background: var(--gs-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--gs-border);
    transition: top 0.3s ease;
    margin-bottom: 60px;
}

.tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 20px 10px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    flex: 0 0 auto;
    background: var(--gs-light-bg);
    border-radius: 50px;
    color: var(--gs-gray);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-item svg {
    width: 18px;
    height: 18px;
    display: block;
}

.tab-item.active, 
.tab-item:hover {
    background: var(--gs-cyan);
    color: var(--gs-white);
    border-color: var(--gs-cyan);
    box-shadow: 0 8px 15px rgba(31, 166, 193, 0.25);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .tabs-wrapper {
        justify-content: flex-start;
    }
}

/* ==========================================================================
    SECCIONES DE ESPECIALIDAD
   =========================================================================
*/

.hero-split-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    padding: 80px 20px;
}

.hero-split-text {
    text-align: left;
}

.accent-line {
    width: 50px;
    height: 4px;
    background: var(--gs-cyan);
    margin-bottom: 15px;
    border-radius: 2px;
    margin: 0 0 40px 0;
}

.subtitle-modern {
    display: inline-block;
    color: var(--gs-cyan);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.title-specialty {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--gs-dark);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.title-specialty span {
    color: var(--gs-cyan);
    font-weight: 400;
    display: block;
    margin-top: 5px;
}

.description-specialty {
    font-size: 1.15rem;
    color: var(--gs-gray);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 35px;
    border-left: 3px solid var(--gs-border);
    padding-left: 20px;
}

@media (max-width: 992px) {
    .hero-split-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }
    .hero-split-text { text-align: center; }
    .description-specialty {
        max-width: 100%;
        text-align: center;
        border-left: none;
        border-top: 2px solid var(--gs-border);
        padding: 20px 0 0;
        margin: 0 auto 35px;
    }
}

@media (max-width: 768px) {
    .accent-line { display: none; }
}

/* Elementos visuales */
.hero-split-image .image-frame,
.image-frame-modern {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 106, 142, 0.15);
}

.hero-split-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.experience-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gs-cyan);
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.floating-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--gs-white);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.badge-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gs-cyan);
}

.badge-txt {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--gs-dark);
}

@media (max-width: 992px) {
    .hero-split-image img { height: 300px; }
}

@media (max-width: 600px) {
    .floating-badge { top: 20px; right: 20px; padding: 12px; }
    .badge-number { font-size: 1.5rem; }
}

/* Acciones */
.hero-actions-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gs-gray);
    background: var(--gs-light-bg);
    padding: 8px 16px;
    border-radius: 50px;
}

@media (max-width: 992px) {
    .hero-actions-modern { justify-content: center; }
}

@media (max-width: 600px) {
    .trust-pill { width: 100%; justify-content: center; }
}

/* Tratamientos */
.services-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.treatment-card {
    background: var(--gs-white);
    padding: 35px 25px;
    border-radius: 30px;
    border: 1px solid var(--gs-border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 480px;
}

@media (max-width: 1024px) {
    .treatment-card {
        border-color: var(--gs-cyan);
    }
}

.treatment-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gs-cyan);
    transition: height 0.4s ease;
}

.treatment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 106, 142, 0.08);
    border-color: var(--gs-cyan);
}

.treatment-card:hover::before {
    height: 100%;
}

.treatment-card h4 {
    color: var(--gs-dark);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.treatment-card p {
    color: var(--gs-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.treatment-icon-box {
    width: 60px;
    height: 60px;
    background: var(--gs-light-bg);
    color: var(--gs-cyan);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.treatment-card:hover .treatment-icon-box {
    background: var(--gs-cyan);
    color: var(--gs-white);
    transform: scale(1.1) rotate(5deg);
}

.treatment-link {
    margin-top: auto;
    color: var(--gs-cyan);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .treatment-link {
        opacity: 1;
        transform: translateX(0);
    }
}

.treatment-card:hover .treatment-link {
    opacity: 1;
    transform: translateX(0);
}

.treatment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.treatment-list li {
    font-size: 0.9rem;
    color: var(--gs-gray);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.treatment-list li::before {
    content: "•";
    color: var(--gs-cyan);
    font-weight: bold;
    font-size: 1.2rem;
}

/* cta */
.cta-final-section {
    padding: 80px 0;
    background-color: var(--gs-light-bg);
}

.cta-gs-card {
    background: linear-gradient(135deg, var(--gs-dark) 0%, var(--gs-cyan) 100%);
    border-radius: 40px;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(0, 106, 142, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-gs-content {
    flex: 1;
}

.cta-gs-header .accent-line {
    background: var(--gs-white);
}

.cta-gs-header .subtitle-modern {
    color: rgba(255, 255, 255, 0.8);
}

.cta-gs-description {
    color: var(--gs-white);
    font-size: 1.1rem;
    max-width: 550px;
    margin-top: 15px;
    opacity: 0.9;
}

.cta-gs-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 320px;
}

.cta-gs-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 992px) {
    .cta-gs-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .cta-gs-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-gs-actions {
        width: 100%;
        min-width: unset;
    }
}

/* Promos */

.promos {
    padding: 60px 0;
    background-color: var(--gs-light-bg);
}

.promo-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
}

.promo-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 15px 0;
    -webkit-overflow-scrolling: touch;
}

.promo-track::-webkit-scrollbar { display: none; }

.promo-item {
    flex: 0 0 100%;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.promo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.promo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(31, 166, 193, 0.15);
}

.promo-item:hover img { transform: scale(1.03); }

@media (min-width: 768px) {
    .promo-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (min-width: 1024px) {
    .promo-item { flex: 0 0 calc(33.33% - 14px); } 
}

.promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--gs-cyan);
    color: var(--gs-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(31, 166, 193, 0.3);
}

.promo-arrow:hover { 
    background: var(--gs-cyan);
    color: var(--gs-white);
    transform: translateY(-50%) scale(1.1);
}

.promo-arrow.prev { left: 5px; }
.promo-arrow.next { right: 5px; }

.promo-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    background: var(--gs-white);
    border-radius: 30px;
    overflow: hidden;
    animation: modal-in 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes model-in {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gs-white);
    color: var(--gs-dark);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 20;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--gs-cyan);
}

.modal-footer {
    padding: 25px;
    text-align: center;
    background: var(--gs-white);
}

.modal-footer .btn-primary {
    width: 100%;
    font-size: 1rem;
}