﻿/*----------------- Body Principal------------------------*/
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #F0F9FF;
    color: #334155;
    line-height: 1.6;
}

/*----------------- Accesibilidad Global ------------------------*/
html.text-zoom {
    font-size: 110% !important;
}

body.high-contrast::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99;
    backdrop-filter: contrast(135%) saturate(125%) brightness(95%);
    -webkit-backdrop-filter: contrast(135%) saturate(125%) brightness(95%);
}

p,
span,
li,
a,
button,
input {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: 'Nunito', sans-serif;
    color: #0c4a6e;
    letter-spacing: -0.3px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Compensa la barra de navegación fija */
}

/* Fix mobile button font inheritance */
.mobile-submenu-toggle {
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}











/*----------------- Contacto ------------------------*/
.contact-options-section {
    background: #ffffff;
    padding: 4rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0.5rem auto 3rem;
    color: #64748b;
}

.contact-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    border-radius: 16px;
    background: #f1f5f9;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-option i {
    font-size: 1.3rem;
    color: #2563EB;
}

.contact-option:hover {
    background: #e0f2fe;
}

.contact-option.active {
    background: linear-gradient(135deg, #2563EB, #00E0C6);
    color: white;
}

.contact-option.active i {
    color: white;
}

.contact-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-map {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 1rem;
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
}

.contact-form-container {
    width: 100%;
    max-width: 100%;
}

.contact-form-container form {
    width: 100%;
}

.contact-form-container input,
.contact-form-container textarea,
.contact-form-container select {
    width: 100%;
}

.form-submit-btn {
    display: block;
    margin: 2rem auto 0 auto;
}

.contact-form-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    overflow: hidden;
}

/* Logo de fondo */
.contact-form-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("img/logo_cesfam.webp") center no-repeat;
    background-size: 320px;
    opacity: 0.04;
    pointer-events: none;
}

/* Título */
.form-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #0f4c81;
    position: relative;
}

/* Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #334155;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* Botón */
.form-submit-btn {
    margin-top: 2rem;
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    position: relative;
}

.form-submit-btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* ===== FIX CONTACTO MOBILE ===== */
@media (max-width: 768px) {

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-options {
        order: 1;
        flex-direction: column;
    }

    .contact-form-container {
        order: 2;
        width: 100%;
        max-width: 100%;
    }

}

















/* ===== Galería ===== */
.historical-gallery {
    margin-top: 4rem;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #0f4c81;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    transition: transform .3s ease, box-shadow .3s ease;
    will-change: transform;
}

.gallery-img:hover {
    transform: scale(1.04);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .25);
}

/* ===== Modal ===== */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
}

.image-modal.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
}














/*----------------- Boton intranet------------------------*/
.intranet-btn {
    background: linear-gradient(135deg, #FACC15, #F59E0B);
    color: #78350F;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.intranet-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #FDE047, #FBBF24);
}

.intranet-btn i {
    color: #92400E;
}















/*----------------- NAV ------------------------*/
.nav-links {
    transition: all 0.35s ease;
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 96px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        padding: 1.5rem 0;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

        opacity: 0;
        transform: translateY(-15px);
        pointer-events: none;
    }

    /* Mobile Drill-down Menu */
    .mobile-menu-container {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .mobile-view {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: white;
        overflow-y: auto;
        /* Allow scrolling within views */
        padding-bottom: 2rem;
    }

    /* Main view is default */
    .mobile-view.main-view {
        transform: translateX(0);
        z-index: 10;
    }

    /* Sub view is hidden to right */
    .mobile-view.sub-view {
        transform: translateX(100%);
        z-index: 20;
        display: none;
        /* Hide when not active to prevent focus */
    }

    /* Active states */
    .mobile-menu-container.view-submenu .main-view {
        transform: translateX(-30%);
        /* Parallax-like effect */
        opacity: 0.5;
        pointer-events: none;
    }

    .mobile-menu-container.view-submenu .sub-view {
        transform: translateX(0);
        display: block;
    }

    /* Vistas para Promoción y Asistencia */
    .mobile-menu-container.view-promo .main-view {
        transform: translateX(-30%);
        opacity: 0.5;
        pointer-events: none;
    }

    .mobile-menu-container.view-promo .sub-view-promo {
        transform: translateX(0);
        display: block;
    }

    .mobile-view.sub-view-promo {
        transform: translateX(100%);
        z-index: 20;
        display: none;
    }

    /* Typography fixes */
    .mobile-link-btn {
        width: 100%;
        text-align: left;
        font-family: 'Inter', sans-serif;
        font-size: 1.125rem;
        /* 18px, matches text-lg */
        color: #334155;
        /* text-slate-700 */
        background: none;
        border: none;
        padding: 0 0 0.75rem 0;
        /* pb-3 */
        border-bottom: 1px solid #f1f5f9;
        /* border-slate-100 */
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    left: 0;
    bottom: -6px;
    background: linear-gradient(to right, #00E0C6, #2563EB);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link {
    position: relative;
    /* Fixes animation positioning */
    transition: transform 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}
















/*----------------- Boton de volver en Centros ------------------------*/

.volver-flecha {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    transition: transform .2s ease, box-shadow .2s ease;
    z-index: 10;
}

.volver-flecha:hover {
    transform: translateX(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .15);
}

/* Móvil */
@media (max-width: 640px) {
    .volver-flecha {
        top: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
    }
}













/*----------------- Banner principal ------------------------*/
.hero-banner {
    background-image: linear-gradient(135deg,
            rgba(37, 99, 235, 0.5),
            rgba(0, 224, 198, 0.4)),
        url('../img/historia/f_nuevo.webp');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Sombras para asegurar legibilidad */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-banner h1 {
    color: white !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 3.5rem;
}

.quick-access-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.quick-access-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 224, 198, 0.3), 0 10px 10px -5px rgba(0, 224, 198, 0.2);
    border-color: #00E0C6;
}




















/*----------------- Mision y vision ------------------------*/
.mission-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 35px rgba(37, 99, 235, 0.15);
}


.view-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.view-section.active-view {
    display: block;
}

.services-online {
    background: #f2faff;
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f172a;
}

.section-header p {
    max-width: 600px;
    margin: 1rem auto 0;
    color: #475569;
}















/*----------------- Servicios online card ------------------------*/
.services-online .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.online-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.online-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.online-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 1rem;
}

.online-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f4c81;
}

.online-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
    .services-online .container {
        grid-template-columns: 1fr;
    }
}















/*----------------- Zonas de atencion ------------------------*/
.zones-section {
    padding: 5rem 1.5rem;
    background: #f5fbff;
    text-align: center;
}

.zones-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.zones-subtitle {
    max-width: 620px;
    margin: 0.75rem auto 2.5rem;
    color: #475569;
    font-size: 0.95rem;
}

/* Botones */
.zones-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.zone-btn {
    padding: 0.75rem 2rem;
    border-radius: 999px;
    border: 2px solid #2563eb;
    background: transparent;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zone-btn:hover {
    background: #2563eb;
    color: #fff;
}

.zone-btn.active {
    background: #2563eb;
    color: #fff;
}

.zone-map-wrapper {
    width: 100%;
    max-width: 1200px;
    height: 520px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.zone-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*----------------- Preloader ------------------------*/
#preloader.hidden-preloader {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*----------------- Page Transitions ------------------------*/
body {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    /* Removed transform: translateY(0) to fix fixed positioning of chatbot */
}

body.page-hidden {
    opacity: 0;
    transform: translateY(20px);
    /* Deslizar hacia abajo al salir/entrar */
    pointer-events: none;
}

/*----------------- Chatbot & Scroll UI ------------------------*/
.animate-bounce-slow {
    animation: bounce 3s infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Indicator Dots */
#chat-typing span {
    animation: typing 1.4s infinite ease-in-out both;
}

#chat-typing span:nth-child(1) {
    animation-delay: -0.32s;
}

#chat-typing span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Scroll Button Shadow */
#scrollTopBtn {
    box-shadow: 0 4px 14px 0 rgba(0, 118, 255, 0.39);
}


@media (max-width: 768px) {
    .zone-map-wrapper {
        height: 380px;
        border-radius: 18px;
    }
}














/*----------------- Servicios online ------------------------*/
.services-available {
    background: #ffffff;
    padding: 5rem 0;
}


.available-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    justify-items: center;
}

.available-grid .service-item {
    max-width: 300px;
    text-align: center;
}

/* Centrar los dos últimos */
.available-grid .service-item:nth-child(4) {
    grid-column: 1 / 2;
}

.available-grid .service-item:nth-child(5) {
    grid-column: 3 / 4;
}

/* Responsive */
@media (max-width: 900px) {
    .available-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .available-grid .service-item:nth-child(4),
    .available-grid .service-item:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .available-grid {
        grid-template-columns: 1fr;
    }
}

.service-item {
    max-width: 300px;
    text-align: center;
}

.service-item i {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.service-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.service-item p {
    font-size: .9rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 900px) {
    .available-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .available-grid {
        grid-template-columns: 1fr;
    }
}

















/*----------------- Chat Bot ------------------------*/
#chat-window {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

#chat-window.hidden-chat {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

#chat-window.visible-chat {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.btn-vivid {
    background: linear-gradient(90deg, #2563EB 0%, #00E0C6 100%);
    color: white;
    transition: all 0.3s ease;
}

.btn-accent {
    background-color: #FF9F43;
    color: white;
}

.icon-bg-gradient {
    background: linear-gradient(135deg, #E0F2FE 0%, #CCFBF1 100%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeChat {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeChat 0.4s ease-out;
}

@media (max-width: 640px) {
    #chat-window button {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }

    #chat-input {
        font-size: 0.9rem;
    }
}



















/*----------------- Menu movil ------------------------*/
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 55;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    background: white;
    width: 85%;
    max-width: 360px;
    height: 100%;
    padding: 2rem;

    transform: translateX(-100%);
    transition: transform 0.35s ease;
}

.mobile-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu a {
    font-weight: 500;
    color: #334155;
}

.mobile-menu a:hover {
    color: #2563EB;
}

/* Logo en menú móvil */
.mobile-menu-logo {
    margin-top: auto;
    padding-top: 2.5rem;
    display: flex;
    justify-content: center;
    opacity: 0.4;
}

.mobile-menu-logo img {
    height: 200px;
    width: auto;
    filter: grayscale(70%) blur(0.5px);
}















/*----------------- Sección enlaces institucionales ------------------------*/
.institution-link {
    position: relative;
    padding: 1.5rem;
    border-radius: 1.5rem;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background-color 0.35s ease;
}

/* Línea decorativa inferior */
.institution-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #2563EB, #00E0C6);
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width 0.35s ease;
}

/* Hover general */
.institution-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(37, 99, 235, 0.15);
    background-color: #F0F9FF;
}

/* Línea aparece */
.institution-link:hover::after {
    width: 60%;
}

/* Imagen animada */
.institution-link img {
    transition: transform 0.4s ease;
}

.institution-link:hover img {
    transform: scale(1.08);
}

/* Texto */
.institution-link span {
    display: inline-block;
    transition: color 0.3s ease;
}

.institution-link:hover span {
    color: #2563EB;
}



















/*----------------- Footer CESFAM ------------------------*/
.footer-cesfam {
    background: linear-gradient(180deg, #eef8ff, #e6f4ff);
    padding: 4rem 1.5rem 1.5rem;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.footer-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f4c81;
}

.footer-text {
    color: #475569;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: #2563eb;
    color: #ffffff;
}

.footer-list,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    color: #334155;
}

.footer-list i {
    color: #2563eb;
    min-width: 18px;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-accreditation {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-accreditation img {
    max-width: 140px;
    opacity: 0.6;
}

.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #dbeafe;
    font-size: 0.85rem;
    color: #475569;
}

/* Responsive */
@media (max-width: 640px) {
    .footer-card {
        padding: 1.6rem;
    }

    .footer-socials {
        justify-content: center;
    }
}




















/* FAQ animado */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding-bottom: 0;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding-bottom: 1.5rem;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    #chat-widget {
        pointer-events: none;
    }

    #chat-widget>button,
    #chat-window {
        pointer-events: auto;
    }
}















/*----------------- Boton volver a centros de salud------------------------*/
.volver-centros {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1.5rem;
}

.btn-volver-centros {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    background-color: #f1f5f9;
    color: #334155;

    padding: 0.6rem 1.2rem;
    border-radius: 9999px;

    font-weight: 600;
    font-size: 0.95rem;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.btn-volver-centros i {
    font-size: 0.85rem;
}

.btn-volver-centros:hover {
    background-color: #e2e8f0;
    transform: translateX(-4px);
}


/* Animación para el modal de imágenes */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-zoom-in {
    animation: zoomIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}