:root {
    --primary: #002d9c; /* Los Pinos Blue */
    --primary-dark: #001f6b;
    --secondary: #002d9c;
    --accent: #ff7300; /* Los Pinos Orange */
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-dark: #002d9c;
    --text-muted: #64748b;
    --white: #ffffff;
    --dark: #0f172a; /* Slate 900 */
    --container-max: 1300px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border: none;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.4);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 99px;
}

.btn-pill-cyan {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 99px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 45, 156, 0.2);
}

.btn-pill-cyan:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.navbar.scrolled {
    padding: 0.6rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 45, 156, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 800;
    font-size: 0.85rem;
    position: relative;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #FFF;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('imagenes/slider/slider-pc.png?v=1.1') right top/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 156, 0.4); /* Reduced opacity for clarity */
    z-index: 1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), transparent 80%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    color: var(--white);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 3.5rem;
    max-width: 600px;
    font-weight: 500;
}

.text-gradient {
    background: linear-gradient(to right, #22d3ee, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Interactive Cursor Orb */
.cursor-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* --- Values Top --- */
.values-top {
    margin-top: -4.5rem;
    position: relative;
    z-index: 100;
}

.values-bar {
    background: #f1f7f9; /* Subtle medical light blue */
    padding: 1.5rem 3rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--white);
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    padding: 0.5rem 1.5rem;
}

.value-item:not(:last-child) {
    border-right: 1px solid #cbd5e1;
}

.value-icon {
    font-size: 2.25rem;
    color: var(--primary); 
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-info h4 {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0px;
    line-height: 1.2;
}

.value-info p {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 1024px) {
    .values-bar {
        flex-direction: column;
        border-radius: 30px;
        padding: 2rem;
        gap: 2rem;
    }
    .value-item {
        width: 100%;
        border-right: none !important;
        border-bottom: 1px solid #cbd5e1;
        padding-bottom: 1.5rem;
    }
    .value-item:last-child {
        border-bottom: none;
    }
}


/* --- About Section (Nosotros) --- */
.about {
    padding: 8rem 0;
    background: var(--white);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-images {
    position: relative;
    height: 480px;
    width: 100%;
}

.img-main {
    width: 75%;
    height: 80%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-sub {
    width: 55%;
    height: 60%;
    border-radius: 30px;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 3;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.img-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-images:hover .img-main img,
.about-images:hover .img-sub img {
    transform: scale(1.05);
}

.about-content {
    display: flex;
    flex-direction: column;
}

/* --- Section Utilities --- */
.section-badge {
    display: inline-block;
    background: rgba(0, 45, 156, 0.08);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* --- Helper Classes --- */
.text-white {
    color: var(--white) !important;
}

/* --- About Features List --- */
.about-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 45, 156, 0.08);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.feature-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* --- Responsive About Section --- */
@media (max-width: 1024px) {
    .about {
        padding: 5rem 0;
    }
    .about-images {
        height: 380px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .about-images {
        height: 280px;
    }
    .img-sub {
        border-width: 4px;
        border-radius: 20px;
    }
    .img-main {
        border-radius: 20px;
    }
    .about-features {
        gap: 1rem;
    }
}


/* --- About Us Hero New --- */
.about-hero-new {
    position: relative;
    padding: 12rem 0 6rem 0;
    text-align: center;
    background: url('imagenes/DSC03616.jpg') center/cover no-repeat;
}

.about-hero-new::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(255,255,255,1), transparent);
}

.about-hero-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.4);
}

.about-hero-new .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.about-hero-title {
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.about-hero-subtitle {
    color: #0ea5e9;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-hero-text {
    color: #475569;
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- Who We Are Section --- */
.who-we-are {
    padding: 5rem 0;
    background: var(--white);
}

.who-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.who-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.who-content h2 {
    color: #0ea5e9;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.who-content p.who-desc {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.mv-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    transition: 0.3s;
}

.mv-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
    transform: translateY(-5px);
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.mv-text h3 {
    color: #0ea5e9;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mv-text p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

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

/* --- Testimonials --- */
.testimonials {
    padding: 10rem 0;
    background: var(--bg-white);
}

.text-center {
    text-align: center;
    margin-bottom: 5rem;
    padding: 100px 0;
    background: #f8fafc;
}

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

.testimonials-slider-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    padding: 2rem 0;
}

.testimonials-viewport {
    flex-grow: 1;
    overflow: hidden;
    padding: 1rem 0;
}

.testimonials-grid {
    display: flex;
    gap: 2rem;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    flex: 0 0 calc(100% / 3 - 1.35rem); /* Default 3 items on desktop */
}

.testimonial-card {
    background: var(--dark);
    padding: 0;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 45, 156, 0.15);
    position: relative;
    overflow: hidden;
    aspect-ratio: 9/16;
    display: flex;
    align-items: flex-end;
    transition: 0.4s;
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.testimonial-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 3;
    transition: 0.3s;
}

.testimonial-card:hover .testimonial-play-btn {
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.testimonial-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    width: 100%;
    padding: 2rem 1.5rem;
    color: white;
}

.testimonial-overlay h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
}

.rating-hearts {
    color: #ef4444; /* Heart red */
    font-size: 0.9rem;
    display: flex;
    gap: 3px;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- Social Feed --- */
.social-feed {
    padding: 100px 0;
    background: var(--white);
}

.section-title-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.fb-link {
    color: #1877f2;
    font-weight: 700;
}

.fb-page-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.fb-page-container iframe {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: var(--white);
}

/* --- Services Clean Redesign --- */
.services-clean-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card-clean {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card-clean:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.sc-img {
    width: 100%;
    height: 160px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.sc-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sc-content h3 {
    color: #0ea5e9;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sc-content p {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.sc-btn {
    margin-top: auto;
    display: inline-block;
    background: #0ea5e9;
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.sc-btn:hover {
    background: #0284c7;
    color: var(--white);
}

@media (max-width: 1024px) {
    .services-clean-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .services-clean-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Social Feed / Tagembed --- */
.tagembed-container {
    position: relative;
    width: 100%;
    height: 720px; /* Altura visible deseada */
    overflow: hidden; /* Esto recorta lo que sobra */
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 45, 156, 0.1);
    background: var(--white);
}

.tagembed-container iframe {
    width: 100% !important;
    height: 780px !important; /* Altura mayor para que el logo quede abajo y se recorte */
    border: none;
    margin-top: -10px; /* Ajuste opcional para centrar el contenido */
}
/* --- Location / Map Section --- */
.location {
    padding: 100px 0;
    background: #f8fafc;
}

.map-premium-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    background: var(--white);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 45, 156, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

.map-sidebar {
    padding: 3rem;
    background: var(--white);
    z-index: 2;
}

.sede-info h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.sede-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.contact-detail-list {
    margin-bottom: 2.5rem;
}

.contact-detail-list li {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-detail-list i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.contact-detail-list strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-detail-list p {
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.amenities-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    color: #94a3b8;
    font-size: 1.25rem;
}

.map-iframe-wrapper {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .map-premium-container {
        grid-template-columns: 1fr;
    }
    .map-iframe-wrapper {
        height: 400px;
    }
}

/* --- Footer White Redesign --- */
.footer-white {
    background: var(--white);
    padding: 4rem 0 0 0;
    color: #475569;
    font-family: 'Outfit', sans-serif;
}

.footer-white-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.fw-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fw-logo-img {
    max-width: 180px;
    height: auto;
}

.fw-column h4 {
    color: #0ea5e9; /* Cyan color from reference */
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.fw-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary); /* Blue line */
}

.fw-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fw-contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.fw-contact-list i {
    color: var(--primary); /* Blue icons */
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.fw-schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fw-schedule-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.fw-schedule-list i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.fw-schedule-list p {
    margin: 0;
    line-height: 1.4;
}

.footer-bottom-bar {
    background: #0ea5e9; /* Cyan bottom bar */
    color: var(--white);
    padding: 1.25rem 0;
}

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

.fb-libro {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.fb-libro i {
    font-size: 2.5rem;
}

.fb-libro small {
    font-size: 0.65rem;
    display: block;
    background: var(--white);
    color: #0ea5e9;
    padding: 2px 5px;
    border-radius: 4px;
    margin-top: 2px;
    text-align: center;
    font-weight: 800;
}

.fb-copy {
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .footer-white-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .fw-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .fw-contact-list li, .fw-schedule-list li {
        justify-content: center;
    }
    .fb-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}


/* --- Animations --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }

[data-reveal].active {
    opacity: 1;
    transform: translate(0);
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    max-width: 900px;
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: 0.3s;
}

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

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-form {
    padding: 4rem;
}

.modal-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.modal-form p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.btn-block {
    width: 100%;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-image {
        display: none;
    }
    .modal-form {
        padding: 2.5rem;
    }
}

@media (max-width: 480px) { 
    .fb-page-container iframe { width: 100% !important; } 
}

/* --- La Clínica Page Specific Styles --- */
.page-header {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumb a, .breadcrumb span {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb i {
    font-size: 0.8rem;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.about-hero-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.image-premium-frame {
    position: relative;
    border-radius: 60px 0 60px 0;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.image-premium-frame img {
    width: 100%;
    display: block;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(255,255,255,0.4);
    transition: 0.3s;
}

.play-btn-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Mission & Vision */
.mission-vision {
    padding: 100px 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.image-premium-frame-left {
    border-radius: 0 60px 0 60px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.image-premium-frame-left img {
    width: 100%;
    display: block;
}

.mb-5 { margin-bottom: 3rem; }

/* Values Dark */
.values-dark {
    padding: 100px 0;
    background: #001f3f; /* Deep medical blue */
    color: var(--white);
}

.values-dark-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: center;
}

.values-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
    margin-top: 3rem;
}

.value-dark-item {
    display: flex;
    gap: 1.5rem;
}

.v-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.v-text h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.v-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Installations */
.installations {
    padding: 100px 0;
}

.installations-gallery {
    margin-top: 4rem;
}

.gallery-main {
    width: 100%;
    height: 600px;
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.gallery-thumbs img {
    width: 120px;
    height: 80px;
    border-radius: 12px;
    cursor: pointer;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.3s;
    border: 2px solid transparent;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--accent);
}

@media (max-width: 1024px) {
    .about-hero-grid, 
    .mission-vision-grid,
    .values-dark-grid,
    .values-list-grid {
        grid-template-columns: 1fr;
    }
    .gallery-main {
        height: 350px;
    }
    .about-hero-image {
        order: -1;
    }
}

@media (max-width: 480px) { .fb-page-container iframe { width: 100% !important; } }

/* --- Services Page Grid --- */
.services-page-grid {
    padding: 100px 0;
    background: #f1f7f9;
}

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

.service-premium-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 45, 156, 0.05);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.service-premium-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 45, 156, 0.12);
}

.service-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.service-premium-card:hover .service-img img {
    transform: scale(1.1);
}

.service-badge-icon {
    position: absolute;
    bottom: -25px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(255, 115, 0, 0.4);
    z-index: 2;
    border: 4px solid var(--white);
}

.service-body {
    padding: 3rem 2rem 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-body h3 {
    font-size: 1.4rem; /* Reduced from 1.6rem */
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.short-desc {
    font-weight: 400; /* Removed bold */
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 0.85rem; /* Reduced from 0.9rem */
    line-height: 1.5;
    text-align: justify;
    word-break: break-word;
}

.extra-info {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.extra-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.btn-whatsapp-service {
    background: #25d366;
    color: var(--white);
    width: 100%;
    padding: 1.1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: 0.3s;
    border: none;
}

.btn-whatsapp-service:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    color: var(--white);
}

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

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

/* --- Contact Page Specific Styles --- */
.contact-hero {
    background: var(--white);
    color: var(--text-main);
    padding-bottom: 250px !important;
}

.contact-hero .breadcrumb a,
.contact-hero .breadcrumb span {
    color: var(--text-muted);
}

.contact-hero .breadcrumb a:hover {
    color: var(--primary);
}

.contact-hero .breadcrumb i {
    color: var(--text-muted);
}

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

.contact-hero .contact-top-list {
    color: var(--text-dark);
}

.contact-header-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-top-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-top-list li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.contact-top-list i {
    color: var(--accent);
    width: 30px;
}

.contact-form-premium {
    background: var(--white);
    padding: 4rem;
    border-radius: 40px;
    color: var(--primary);
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
    border: 2px solid var(--primary);
}

.form-header {
    margin-bottom: 3rem;
}

.contact-form-premium .form-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-form-premium .form-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.premium-form-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-form-premium .form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.contact-form-premium .form-group input, 
.contact-form-premium .form-group select, 
.contact-form-premium .form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    color: var(--text-dark);
    transition: 0.3s;
}

.contact-form-premium .form-group input:focus, 
.contact-form-premium .form-group select:focus, 
.contact-form-premium .form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-terms {
    margin: 0.5rem 0 1.5rem;
    text-align: center;
}

.contact-form-premium .form-terms p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form-premium .form-terms a {
    text-decoration: underline;
    color: var(--primary);
}

.contact-image-side .image-premium-frame {
    height: 700px;
    border-radius: 60px;
}

.contact-image-side img {
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .contact-header-grid {
        grid-template-columns: 1fr;
    }
    .contact-image-side {
        display: none;
    }
}

@media (max-width: 768px) {
    .contact-form-premium {
        padding: 2.5rem 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- Responsive Fixes and Menu Hamburger --- */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4rem 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        gap: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-cta {
        display: none; /* Hide phone button in menu on tablets */
    }

    .mobile-toggle {
        display: block;
    }

    /* Typography adjustments */
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 1rem); /* 2 items on tablet */
    }
}

@media (max-width: 600px) {
    .hero {
        background: url('imagenes/slider/Slider-movil.png?v=1.1') center top/cover no-repeat;
    }

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

    .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

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

    .services-wrapper {
        grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
        gap: 0.75rem; /* Slightly smaller gap */
    }

    .service-premium-card {
        border-radius: 15px;
        text-align: center; /* Center content */
    }

    .service-body {
        padding: 1.25rem 0.75rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .service-body h3 {
        font-size: 0.9rem; /* Smaller for mobile */
        margin-bottom: 0.4rem;
        min-height: 2.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .service-img {
        height: 120px;
    }

    .service-badge-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        right: 10px;
        bottom: -15px;
    }

    .short-desc {
        font-weight: 400;
        font-size: 0.65rem; /* Even smaller for mobile */
        line-height: 1.3;
        margin-bottom: 0.6rem;
        display: block;
        height: 3.2rem; 
        overflow: hidden;
        text-align: justify; /* Justified as requested */
    }

    .extra-info {
        display: none; 
    }

    .btn-whatsapp-service {
        padding: 0.6rem 0.2rem;
        font-size: 0.65rem;
        border-radius: 8px;
        margin-top: auto;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
    
    .container {
        padding: 0 1.25rem;
    }

    .values-bar {
        padding: 1.25rem;
        border-radius: 20px;
        gap: 1rem;
    }

    .value-item {
        padding: 0.5rem 0;
    }

    .value-info h4 {
        font-size: 0.95rem;
    }
    
    .nav-logo {
        height: 48px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }

    body {
        font-size: 0.9rem; /* Smaller body text on mobile */
    }

    p, .section-desc {
        font-size: 0.9rem !important;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .testimonial-card {
        flex: 0 0 100%; /* 1 item on mobile */
    }
}

/* --- Video Lightbox & Thumbnail Updates --- */
.testimonial-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover .testimonial-thumbnail {
    transform: scale(1.05);
}

.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 500px; /* Portrait layout friendly */
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: #ef4444;
    color: var(--white);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

