
/* Tarjetas de servicios con animación y estilo coherente al blog */
.gallery-card {
    background: linear-gradient(135deg, #f8fafc 70%, #e639476f 30%);
    border-radius: 1.5rem;
    box-shadow: 0 2px 12px rgba(230,57,70,0.10);
    padding: 1.2rem 1rem;
    margin: 1rem auto;
    max-width: 400px;
    min-width: 260px;
    transition: box-shadow 0.3s, transform 0.2s, background 0.4s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    animation: fadeInCard 0.7s;
}
.gallery-card:hover {
    box-shadow: 0 8px 32px rgba(230,57,70,0.18);
    transform: translateY(-6px) scale(1.03);
    background: linear-gradient(135deg, #e639476d 70%, #f8fafc 30%);
}
.gallery-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.gallery-card .expand-btn {
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 1em;
    padding: 0.4em 1.1em;
    margin-top: 0.7em;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s;
}
.gallery-card .expand-btn:hover {
    background: var(--primary);
}

/* =============================
    Sección: Redes Sociales Multired
    Estilos para títulos, íconos y contenedores de redes sociales embebidas
============================= */
.gallery-card .gallery-desc {
    font-size: 1rem;
    color: #444;
    text-align: center;
    margin-top: 0.5rem;
    word-break: break-word;
    background: #fff8f8;
    border-radius: 1em;
    box-shadow: 0 2px 8px rgba(230,57,70,0.08);
    padding: 1em;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, background 0.4s;
}
.gallery-card.active .gallery-desc {
    background: #e63946;
    color: #fff;
    box-shadow: 0 8px 32px rgba(230,57,70,0.18);
}

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

.testimonial-card .testimonial-text {
    font-size: 1rem;
    color: #444;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, background 0.4s;
    opacity: 0;
    background: #f8fafc;
    border-radius: 1em;
    box-shadow: 0 2px 8px rgba(29,53,87,0.08);
    padding: 1em;
}
.testimonial-card.active .testimonial-text {
    max-height: 400px;
    opacity: 1;
    margin-top: 1rem;
    background: #1d3557;
    color: #fff;
    box-shadow: 0 8px 32px rgba(29,53,87,0.18);
}

/* Estilo unificado para testimonios, igual a la galería */
.testimonial-card {
    padding: 1.2rem 0.7rem 1.7rem 0.7rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(230,57,70,0.10);
    transition: box-shadow 0.3s, transform 0.2s, background 0.4s;
    cursor: pointer;
    position: relative;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 70%, #e639476f 30%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 260px;
    max-width: 340px;
    margin-bottom: 1.5rem;
    animation: fadeInCard 0.7s;
}
.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(230,57,70,0.18);
    transform: translateY(-6px) scale(1.03);
    background: linear-gradient(135deg, #e639476d 70%, #f8fafc 30%);
}
.testimonial-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 1rem; /* Igual que la galería */
    margin-bottom: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.testimonial-card {
    margin: 1rem 0; /* Eliminamos el margen horizontal para usar 'gap' */
    flex-shrink: 0;   /* Evita que las tarjetas se encojan */
}

#testimonials .slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    cursor: grab; 
    gap: 2rem; /* Usamos 'gap' para un espaciado consistente, igual que en el blog */
}

/* Flotantes profesionales WhatsApp y Davivienda */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    background: linear-gradient(135deg, #25d366 60%, #128c7e 100%);
    color: #fff;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    font-size: 2.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.whatsapp-float:hover {
    box-shadow: 0 8px 32px rgba(37,211,102,0.25);
    transform: scale(1.08);
}
.whatsapp-float i {
    color: #fff;
    font-size: 2.5rem;
    display: block;
}
.pse-float {
    position: fixed;
    bottom: 110px;
    right: 23px;
    z-index: 9997;
    background: #fff;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.pse-float:hover {
    box-shadow: 0 8px 32px rgba(59,130,246,0.18);
    transform: scale(1.08);
}
.pse-float img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

/* Títulos de categorías de convenios - Escritorio */
#convenios .category-title {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#convenios .category-title h2 {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 700;
    margin: 2.5rem 0 1.5rem 0;
    text-align: center;
}

@media (max-width: 900px) {
    .footer-section.quick-links {
        margin-left: 0;
        margin-top: 2.5rem;
    }
    #convenios h2 {
        display: inline-block;
        width: 100%;
        padding: 1rem 2.2rem;
        margin: 1.2rem 0 0.5rem 0;
        border-radius: 2em;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        color: #fff;
        font-weight: 700;
        font-size: 1.15rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.10);
        border: none;
        cursor: pointer;
        letter-spacing: 0.5px;
        transition: background 0.3s, box-shadow 0.3s;
        text-align: left;
    }
    #convenios h2.aliados-active {
        background: linear-gradient(90deg, var(--secondary), var(--primary));
        box-shadow: 0 8px 25px rgba(230,57,70,0.18);
        color: #fff;
        font-size: 1.18rem;
        border: 2px solid var(--primary);
        transition: background 0.3s, box-shadow 0.3s;
    }
}
@media (max-width: 900px) {
    #aliados h3.aliados-active {
        background: linear-gradient(90deg, var(--secondary), var(--primary));
        box-shadow: 0 8px 25px rgba(230,57,70,0.18);
        color: #fff;
        font-size: 1.18rem;
        border: 2px solid var(--primary);
        transition: background 0.3s, box-shadow 0.3s;
    }
}
@media (max-width: 900px) {
    #aliados h3 {
        display: inline-block;
        width: 100%;
        padding: 1rem 2.2rem;
        margin: 1.2rem 0 0.5rem 0;
        border-radius: 2em;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        color: #fff;
        font-weight: 700;
        font-size: 1.15rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.10);
        border: none;
        cursor: pointer;
        letter-spacing: 0.5px;
        transition: background 0.3s, box-shadow 0.3s;
        text-align: left;
    }
    #aliados h3:active, #aliados h3:focus {
        background: var(--secondary);
        box-shadow: 0 8px 25px rgba(230,57,70,0.18);
    }
}
/* Etiqueta especial para Aliados, posicionada arriba a la izquierda del círculo */
/* Etiqueta para Aliados y Convenios, posicionada debajo del círculo */
.aliados-label {
    display: inline-block;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.6em 1.5em;
    font-weight: 700;
    color: var(--secondary);
        /* Efecto Cristal (Glassmorphism) */
    background: rgba(182, 0, 0, 0.392);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    transition: all 0.3s ease;
}

/* Efecto hover en el contenedor padre (.plan-block) afecta a la etiqueta */
.plan-block:hover .aliados-label {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(29, 53, 87, 0.15);
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary);
}

#gallery-list-front {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2rem !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#gallery-list-front .gallery-item {
    padding: 1.2rem 0.7rem 1.7rem 0.7rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(230,57,70,0.10);
    transition: box-shadow 0.3s, transform 0.2s, background 0.4s;
    cursor: pointer;
    position: relative;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 70%, #e639476f 30%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    animation: fadeInCard 0.7s;
}

#gallery-list-front .gallery-item:hover {
    box-shadow: 0 8px 32px rgba(230,57,70,0.18);
    transform: translateY(-6px) scale(1.03);
    background: linear-gradient(135deg, #e639476d 70%, #f8fafc 30%);
}

#gallery-list-front .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 0.7rem;
}

#gallery-list-front .gallery-item .gallery-desc {
    font-size: 1rem;
    color: #444;
    text-align: center;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    /* Galería como carrusel horizontal en móvil */
    #gallery-list-front {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem !important;
        padding-bottom: 1rem;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) #eee;
    }
    
    #gallery-list-front::-webkit-scrollbar {
        height: 8px;
    }
    
    #gallery-list-front::-webkit-scrollbar-track {
        background: #eee;
        border-radius: 10px;
    }
    
    #gallery-list-front::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }
    
    #gallery-list-front .gallery-item {
        width: 280px;
        flex-shrink: 0;
        scroll-snap-align: center;
    }
    
    #gallery-list-front .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    #gallery-list-front .gallery-item {
        width: 85vw;
    }
    #gallery-list-front .gallery-item img {
        height: 220px;
    }
}

/* ================= MENÚ HAMBURGUESA: VISIBILIDAD Y TRANSICIÓN ================= */
@media (max-width: 900px) {
    .menu {
        display: none !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s, opacity 0.3s;
    }
    .menu.show {
        display: flex !important;
        max-height: 600px;
        opacity: 1;
        pointer-events: auto;
        box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    }
}
.contact-card.service-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 0.7rem auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.10));
    transition: transform 0.2s;
}
.contact-card.service-card img:hover {
    transform: scale(1.08);
}
/* Centrado y estilo profesional para .contact-section */
.contact-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    margin: 0 auto 2.5rem auto;
    width: 100%;
    max-width: 1100px;
    padding: 2rem 0 1.5rem 0;
    box-sizing: border-box;
}
/* Blog cards generadas dinámicamente sin clase: aplicar estilos por selectores directos */
/* Tarjetas de blog con animación y estilo coherente */
#blog-cards > div {
    padding: 1.2rem 0.7rem 1.7rem 0.7rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(59,130,246,0.10);
    transition: box-shadow 0.3s, transform 0.2s, background 0.4s;
    cursor: pointer;
    position: relative;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 70%, #0062ff68 30%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 260px;
    max-width: 340px;
    margin-bottom: 1.5rem;
    animation: fadeInCard 0.7s;
}
#blog-cards > div:hover {
    box-shadow: 0 8px 32px rgba(59,130,246,0.18);
    transform: translateY(-6px) scale(1.03);
    background: linear-gradient(135deg, #0062ff68 70%, #f8fafc 30%);
}
#blog-cards > div:active {
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
    transform: scale(0.98);
}
#blog-cards > div img {
    display: block;
    margin: 0 auto 1.2rem auto;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
#blog-cards > div .blog-card-textbox {
    background: #3b82f6;
    border-radius: 1.2rem;
    padding: 1.2rem 1rem 1.2rem 1rem;
    margin: 0 auto 0.5rem auto;
    width: 95%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#blog-cards > div .blog-card-textbox h3 {
    margin-top: 1.2rem;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
#blog-cards > div .blog-card-textbox p {
    padding-bottom: 1.5rem;
    color: #fff;
    font-size: 1.05rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
/* Contenedor individual para cada servicio */
.service-card-wrap {
    margin: 1.2rem 0.7rem;
    padding: 0.7rem 0.7rem 1.2rem 0.7rem;
    display: inline-flex;
    border-radius: 1.5rem;
    background: transparent;
    box-sizing: border-box;
}

/* Quitar subrayado solo a los enlaces dentro de servicios */
.service-card a,
.service-card a:visited,
.service-card a:active,
.service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 260px;
    max-width: 280px;
    flex: 1 1 260px;
    height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(128, 128, 128, 0.15);
    border-radius: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s, transform 0.2s, background 0.4s;
    text-align: center;
    text-decoration: none;
    animation: fadeInCard 0.7s;
}
.service-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px) scale(1.03);
    background: rgba(128, 128, 128, 0.25);
}




.redes-facebook .red-social-link,
.redes-facebook .fa-facebook {
    color: #4267B2 !important;
}

.redes-instagram .red-social-link,
.redes-instagram .fa-instagram {
    color: #E1306C !important;
}

.redes-tiktok .red-social-link,
.redes-tiktok .fa-tiktok {
    color: #000 !important;
}

.redes-facebook .red-social-link:hover {
    background: #4267B2;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(66, 103, 178, 0.18);
}

.redes-facebook .red-social-link:hover i {
    color: #fff !important;
}

.redes-instagram .red-social-link:hover {
    background: #E1306C;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(225, 48, 108, 0.18);
}

.redes-instagram .red-social-link:hover i {
    color: #fff !important;
}

.redes-tiktok .red-social-link:hover {
    background: #000;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.redes-tiktok .red-social-link:hover i {
    color: #fff !important;
}

.red-social-embed {
    position: relative;
}

/* Alineación horizontal profesional para los embeds de redes sociales */
.redes-sociales-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    margin: 0 auto 2.5rem auto;
    width: 100%;
    max-width: 900px;
}

@media (max-width: 900px) {
    .redes-sociales-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        max-width: 100vw;
    }
}

.red-social-embed {
    transition: box-shadow 0.3s, transform 0.3s;
}

.red-social-embed:hover {
    box-shadow: 0 8px 32px rgba(0, 53, 128, 0.18);
    transform: translateY(-8px) scale(1.07);
    z-index: 2;
}

/* Redes sociales: multiredes en un solo contenedor */
.redes-multired {
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.redes-multired-title {
    text-align: center;
    margin-bottom: 2rem;
}

.redes-multired-title h3 {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.redes-multired-title i {
    font-size: 1.5em;
    margin: 0 0.2em;
    color: #4267B2;
}

.redes-multired-title i.fa-instagram {
    color: #000000;
}

.redes-multired-title i.fa-tiktok {
    color: #070707;
}

.redes-multired-desc {
    color: #555;
    font-size: 1.1rem;
}

.redes-multired-contenido {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.red-social-embed {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 0.5rem;
    width: 220px;
    min-width: 180px;
    min-height: 320px;
    max-width: 220px;
    max-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.red-social-embed h4 {
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.red-social-embed i.fa-facebook {
    color: #ffffff;
}

.red-social-embed i.fa-instagram {
    color: #E1306C;
}

.red-social-embed i.fa-tiktok {
    color: #ffffff;
}

@media (max-width: 900px) {
    .redes-multired-contenido {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .red-social-embed {
        width: 95vw;
        max-width: 320px;
        min-width: 180px;
        min-height: 220px;
        max-height: 340px;
    }
}

/* === Redes Sociales: Sección de actividad en vivo === */
#redes-sociales {
    background: #ffffff;
    padding: 4rem 0 2.5rem 0;
    margin: 0 auto 0 auto;
}
/* Asegura que el título de la sección de redes sociales sea siempre visible */
#redes-sociales .section-title {
    opacity: 1;
    transform: translateY(0);
}


#redes-sociales .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.redes-live-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 1.5rem;
}

.red-social-embed {
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    background: #f8fafc;
}

@media (max-width: 900px) {
    .redes-live-box {
        padding: 1.2rem 0.5rem;
    }

    .red-social-embed {
        min-height: 320px;
    }
}

/* Alineación horizontal y centrado profesional de los círculos de planes */
.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Contenedor para el carrusel de planes en móvil */
.pricing-slider-container {
    overflow: hidden; /* Oculta los planes que se salen del área visible */
    width: 100%;
    position: relative;
    margin: 0 auto;
}

#blog-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.plan-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 220px;
    max-width: 260px;
    margin-bottom: 0;
}

/* Centrado profesional de la galería */
#gallery .cards.gallery {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2.5rem auto;
}

/* Grid horizontal para la página de galería completa */
#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#gallery-grid .gallery-item,
#gallery-grid .gallery-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    height: auto;
}

#gallery-grid .gallery-item img,
#gallery-grid .gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 0.7rem;
}

@media (max-width: 768px) {
    #gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    #gallery-grid .gallery-item img,
    #gallery-grid .gallery-card img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    #gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #gallery-grid .gallery-item img,
    #gallery-grid .gallery-card img {
        height: 220px;
    }
}

/* Color rojo empresarial para el click de los dots de testimonios */
#testimonials .nav-dot.active {
    background: #e30613 !important;
    border: 2px solid #e30613 !important;
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e30613cc !important;
    outline: none !important;
    transition: background 0.2s, border 0.2s, box-shadow 0.2s;
}

.form-title {
    text-align: center;
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 1.2rem 0;
    width: 100%;
    display: block;
}

.map-form-libre .form-title {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    text-align: center;
}

@media (max-width: 900px) {
    .map-form-libre .form-title {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
    }
}

/* Layout horizontal para mapa y formulario como hijos libres en el body */
.map-form-libre {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
    margin: 2.5rem auto 3rem auto;
    max-width: 1200px;
    min-height: auto; /* Altura automática */
    position: relative; /* Añadido para el z-index */
    z-index: 3; /* Asegura que esté por encima de la ola del footer */
}

.contact-unified-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch; /* Asegura que las columnas tengan la misma altura */
    padding: 2rem;
}

.contact-column {
    flex: 1 1 400px; /* Cada columna puede crecer y encogerse */
    min-width: 320px;
    display: flex; /* Añadido para controlar el contenido interno */
    flex-direction: column; /* Apila el título y el mapa verticalmente */
}

/* Se elimina la regla anterior .map-form-libre>div:first-child */
/*
 .map-form-libre>div:first-child {
    flex: 1 1 400px;
    min-width: 340px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
*/

/* Estilo para el título del mapa (dentro del contenedor) */
.map-title {
    text-align: center;
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 1.2rem 0;
    width: 100%;
}

/* Oculta el título móvil por defecto en escritorio */
.mobile-contact-title {
    display: none;
}
 
.map-form-libre #map {
    width: 100%;
    flex-grow: 1; /* Hace que el mapa ocupe el espacio restante */
    min-height: 400px; /* Altura mínima para mantener la proporción */
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(86, 83, 83, 0.13);
    background: none;
    margin: 0 auto;
}

.map-form-libre #map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: block;
}

/* Se eliminan las reglas para .form-container y .map-section que ya no son necesarias */
/*
... (reglas eliminadas) ...
*/

@media (max-width: 900px) {
    .map-form-libre {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        min-height: unset;
    }
    .contact-unified-container {
        padding: 1rem;
        margin-top: 0; /* Restaura el margen superior del contenedor */
        min-height:600px; /* Aumenta la altura del contenedor en móvil */
    }
    /* Apila las columnas en móvil */
    .contact-column {
        flex-basis: 100%; /* Cada columna ocupa todo el ancho */
        min-width: 0; /* Resetea el ancho mínimo */
    }

    /* Oculta la columna del formulario en móvil */
    .contact-unified-container .contact-column:last-child {
        display: none;
    }

    /* Aumenta la altura del mapa en móvil */
    .map-form-libre #map {
        min-height: 450px;
    }

    /* En móvil, oculta el título de escritorio y muestra el de móvil */
    .desktop-contact-title {
        display: none;
    }
    .mobile-contact-title {
        display: block;
        margin-bottom: 2.5rem; /* Restaura el espacio estándar debajo del título */
        /* Asegura que el título sea visible en móvil sin depender de la animación */
        opacity: 1;
        transform: translateY(0);
    }
}

html,
body {
    overflow-x: hidden !important;
}

/* =============================
    Eliminar scroll horizontal global
    Evita desbordes horizontales en la página
============================= */
html,
body {
     overflow-x: hidden !important;
}

/* Eliminar scroll horizontal en contenedores flex y grid */
#pricing .cards,
#gallery .cards,
.services-munchkin,
.about-horizontal {
    overflow-x: visible !important;
}

/* =============================
    Eliminar scroll horizontal en contenedores flex y grid
    Permite que los elementos hijos se muestren correctamente
============================= */
#pricing .cards,
#gallery .cards,
.services-munchkin,
.about-horizontal {
     overflow-x: visible !important;
}

/* Ajuste para evitar desbordes accidentales */
.container,
.container.cards,
.container.section-title,
.container.cards.pricing-cards {
    max-width: 100vw;
    overflow-x: visible;
}

/* =============================
    Ajuste para evitar desbordes accidentales
    Limita el ancho máximo de los contenedores
============================= */
.container,
.container.cards,
.container.section-title,
.container.cards.pricing-cards {
     max-width: 100vw;
     overflow-x: visible;
}

/* Título centrado y texto arriba en Sobre Nosotros */

/* Sección Sobre Nosotros optimizada */
.about-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto 3rem auto;
    padding: 2.5rem 0;
}

/* =============================
    Sección Sobre Nosotros
    Layout horizontal y responsive para video y texto
============================= */
.about-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto 3rem auto;
    padding: 2.5rem 0;
}

.about-video {
    width: 280px !important;
    max-width: 30vw !important;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    background: #000;
}

.about-text,
.about-text-top {
    max-width: 540px;
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.about-text h2 {
    color: var(--secondary);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

@media (max-width: 900px) {
    .about-horizontal {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem 0;
    }

    .about-video {
        max-width: 90vw !important;
        width: 100% !important;
    }

    .about-text,
    .about-text-top {
        max-width: 95vw;
    }
}

/* Sección Sobre Nosotros centrada con video para redes */
.about-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto 3rem auto;
    padding: 2.5rem 0 2.5rem 0;
}

/* =============================
    Sección Sobre Nosotros centrada
    Layout vertical para video y texto
============================= */
.about-centered {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     width: 100vw;
     max-width: 100vw;
     margin: 0 auto 3rem auto;
     padding: 2.5rem 0 2.5rem 0;
}

.about-video-centered {
    width: 420px;
    max-width: 90vw;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    background: #000;
    margin-bottom: 2rem;
}

.about-title {
    color: var(--secondary);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    text-align: center;
}

.about-desc {
    max-width: 540px;
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 1.7;
    text-align: center;
}

/* Sección Sobre Nosotros horizontal */
.about-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto 3rem auto;
    padding: 2.5rem 0 2.5rem 0;
}

.about-video {
    width: 420px;
    max-width: 40vw;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    background: #000;
}

.about-text {
    max-width: 540px;
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 1.7;
}

.about-text h2 {
    color: var(--secondary);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

@media (max-width: 900px) {
    .about-horizontal {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem 0;
    }

    .about-video {
        max-width: 90vw;
        width: 100%;
    }

    .about-text {
        max-width: 95vw;
    }
}

/* Enlaces en cards de servicios sin subrayado ni color diferente */
.service-card a {
    text-decoration: none;
    color: inherit;
    display: block; /* Asegura que el enlace ocupe todo el espacio de la tarjeta */
}

/* Blog cards en una sola línea horizontal */
#blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    padding: 1rem 0 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

#blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    padding: 1rem 0 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    min-width: 340px;
    max-width: 340px;
    flex: 0 0 340px;
}

/* Contacto: mapa y formulario uno al lado del otro */
.contact-extra-flex {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    margin: 2.5rem auto;
    flex-wrap: wrap;
    background: #f8fafc;
    border-radius: 2rem;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
    border: 1.5px solid #e0e6ed;
    padding: 3.5rem 0.5rem;
    max-width: 1200px;
    min-height: 620px;
}

/* =============================
    Contacto: mapa y formulario uno al lado del otro
    Estilos para la sección de contacto
============================= */
.contact-extra-flex {
     display: flex;
     flex-direction: row;
     gap: 2.5rem;
     justify-content: center;
     align-items: stretch;
     margin: 2.5rem auto;
     flex-wrap: wrap;
     background: #f8fafc;
     border-radius: 2rem;
     box-shadow: 0 4px 32px rgba(0,0,0,0.07);
     border: 1.5px solid #e0e6ed;
     padding: 3.5rem 0.5rem;
     max-width: 1200px;
     min-height: 620px;
}

.contact-extra-flex #map {
    flex: 1 1 400px;
    min-width: 320px;
    max-width: 600px;
    margin: 0 auto;
    height: 400px;
    min-height: 340px;
}

.contact-extra-flex .form-container {
    flex: 1 1 400px;
    min-width: 320px;
    max-width: 500px;
    margin: 0 auto;
    height: 400px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .contact-extra-flex {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .contact-extra-flex #map,
    .contact-extra-flex .form-container {
        max-width: 100vw;
        min-width: 0;
    }
}

/* ========== Títulos, descripciones y hover-info de planes ========== */
.plan-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary);
    margin-top: 1.2rem;
    margin-bottom: 0.3rem;
    text-align: center;
}

/* =============================
    Descuento y descripción de planes
    Estilos para mostrar descuentos y descripciones en las tarjetas de planes
============================= */

.plan-discount {
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 1em 0 1em 0;
    padding: 0.4em 1.1em;
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    z-index: 3;
}

.plan-desc {
    font-size: 1.05rem;
    color: #444;
    text-align: center;
    margin-bottom: 0.7rem;
}

.plan-hover-info {
    display: none;
    font-size: 1rem;
    color: var(--primary);
    background: #f8fafc;
    border-radius: 1em;
    padding: 0.7em 1em;
    margin-top: 0.7em;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: opacity 0.3s;
    opacity: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 90%;
    pointer-events: none;
}

/* =============================
    Contenedor de imagen de plan
    Permite mostrar información adicional al hacer hover
============================= */

.plan-img-box {
    position: relative;
}

.plan-img-box:hover .plan-hover-info {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ========== Planes solo imágenes (horizontal y responsivo) ========== */

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 3.5rem;
    justify-items: center;
    align-items: start;
    padding: 3.5rem 0 2.5rem 0;
    max-width: 1600px;
    margin: 0 auto;
    background: #f8fafc;
    border-radius: 2.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* =============================
    Tarjeta de imagen de plan
    Estilos para la presentación visual de cada plan
============================= */

.plan-img-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #fff;
    border-radius: 2.5rem;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.13);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    min-width: 260px;
    min-height: 340px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.plan-img-box:hover {
    box-shadow: 0 24px 64px rgba(0, 53, 128, 0.18);
    transform: translateY(-16px) scale(1.10);
}

.plan-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: #f7f7f7;
}

@media (max-width: 900px) {
    /* Carrusel JS para Planes en móvil */
    .pricing-cards {
        display: flex;
        flex-wrap: nowrap; /* Clave para que no salten de línea */
        gap: 2rem; /* Espacio entre planes */
        justify-content: flex-start; /* Alinea las tarjetas al inicio */
    }

    .plan-block {
        flex-shrink: 0; /* Evita que las tarjetas se encojan */
        width: 80vw; /* Cada plan ocupa el 80% del ancho de la pantalla para centrarse */
        max-width: 260px; /* Mantiene un tamaño máximo razonable */
    }
}

/* ========== Hero ========== */
.hero {
    background: var(--light);
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* =============================
    Hero principal
    Banner de bienvenida con imagen y texto destacado
============================= */

.hero .split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 350px;
}

.hero-text h1 {
    font-size: 3.2rem;
    color: var(--secondary);
    font-weight: 900;
    line-height: 1.1;
    animation: slideUp 1s ease-out;
}

.hero .badge {
    background: var(--primary);
    color: #fff;
    padding: 0.3em 1em;
    border-radius: 2em;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: 700;
}

.hero .lead {
    margin: 1.2rem 0;
    font-size: 1.25rem;
    color: #444;
}

.hero-cta {
    margin: 2rem 0;
    display: flex;
    gap: 1.2rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    background: #fff;
    border-radius: 1em;
    padding: 1em 2em;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
}

.stat i {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5em;
    display: block;
}

.hero-visual {
    position: relative;
    flex: 1 1 350px;
    display: flex;
    z-index: 2; /* Asegura que el carrusel esté por encima de las olas */
    justify-content: center;
}

.hero-carousel {
    position: relative;
    width: 450px;
    height: 450px;
    margin: auto;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 12px 40px rgba(106, 97, 97, 0.521);
}

.carousel-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s;
    border-radius: 50%;
}

.carousel-img.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
}

.hero-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--primary);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* ========== NUEVA OLA ANIMADA ========== */
.animated-wave-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1; /* Asegura que las olas estén detrás del contenido */
    overflow: hidden;
}

/* =============================
    Ola animada SVG
    Fondo decorativo animado para el hero
============================= */

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

.parallax>use {
    animation: wave-flow 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
    fill: var(--wave-color-1);
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
    fill: var(--wave-color-2);
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
    fill: var(--wave-color-3);
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
    fill: var(--wave-color-4);
}

@keyframes wave-flow {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* ========== Servicios y Tarjetas con EFECTO DE OLA REAL (CORREGIDO) ========== */
#services {
    background-color: #ffffff;
    padding-top: 4rem;
}

/* =============================
    Sección de servicios
    Contenedor principal para las tarjetas de servicios
============================= */

.services-munchkin {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    align-items: stretch;
    justify-content: center;
    padding: 1.5rem 0;
    max-width: 100%;
    margin: 0 auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #eee;
}

/* =============================
    Tarjetas de servicios y planes
    Efecto de ola y animaciones al hacer hover
============================= */

.card,
.plan-card,
.service-card .card-wave {
    display: none;
}

/* 3. Hacer las imágenes de los planes y blog completamente redondas y del mismo tamaño */
.plan-image,
.blog-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: #f7f7f7;
}

/* Ajuste para que el texto de descuento quede centrado */
.plan-card h3 {
    text-align: center;
}

.plan-card .discount {
    text-align: center;
    display: block;
    margin-top: 0.5rem;
}

/* 4. Implementar el carrusel en Testimonios */
#testimonials .slider {
    max-width: 100%; /* Ocupa todo el ancho del contenedor padre */
    margin: 0 auto;
    position: relative;
    overflow: hidden; /* Oculta las tarjetas que se salen del área visible */
}

/* =============================
    Carrusel de testimonios
    Slider horizontal para mostrar testimonios
============================= */

#testimonials .slides {
    display: flex;
    transition: transform 0.5s ease;
}

#testimonials .testimonial {
    min-width: 100%;
    /* Cada testimonio ocupa el ancho completo */
    box-sizing: border-box;
}

/* Botones de navegación para el carrusel */
.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(29, 53, 87, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-nav-btn:hover {
    background: var(--primary);
}

.testimonial-nav-btn.prev {
    left: 10px;
}

.testimonial-nav-btn.next {
    right: 10px;
}

/* 5. Mapa de Google más grande y con la ubicación */
#map {
    width: 72%;
    height: 500px;
    border-radius: 2.5rem;
    margin: 3rem auto;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(86, 83, 83, 0.61);
    transition: box-shadow 0.4s, transform 0.4s;
}

/* =============================
    Mapa de Google embebido
    Estilos para el iframe del mapa y su contenedor
============================= */

#map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === Blog, Botones Flotantes y Animaciones (Migrados desde styles.css) === */
.blog-card {
    padding: 1.2rem 0.7rem 1.7rem 0.7rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.3s, transform 0.2s;
    cursor: pointer;
    position: relative;
    border-radius: 1.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 260px;
    max-width: 340px;
}

/* =============================
    Tarjetas de blog
    Estilos para la presentación de cada entrada de blog
============================= */

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(0, 53, 128, 0.18);
    transform: translateY(-6px) scale(1.03);
}

.blog-card:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: scale(0.98);
}

#blog-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
    padding-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
}


.blog-card h3,
.blog-card p {
    padding: 0 1.2rem;
}

.blog-card-textbox {
    background: #3b82f6;
    border-radius: 1.2rem;
    padding: 1.2rem 1rem 1.2rem 1rem;
    margin: 0 auto 0.5rem auto;
    width: 95%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-card h3 {
    margin-top: 1.2rem;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.blog-card p {
    padding-bottom: 1.5rem;
    color: #fff;
    font-size: 1.05rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.blog-card img {
    display: block;
    margin: 0 auto 1.2rem auto;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-card h3 {
    margin-top: 1rem;
}

.blog-card p {
    padding-bottom: 1.5rem;
}

/* ========== Botones Contacto y Flotantes ========== */
.contact-buttons {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================
    Botones de contacto flotantes
    WhatsApp y Davivienda con animación y sombra
============================= */

.whatsapp-btn {
    background: #25d366;
}

.pse-btn {
    background: #003876; /* Color corporativo de PSE */
}

.davi-btn {
    background: #e30613;
}

.whatsapp-float,
.davi-float {
    position: fixed;
    right: 20px;
    border-radius: 50%;
    z-index: 9997;
    transition: var(--transition);
}

.whatsapp-float {
    bottom: 20px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.davi-float {
    bottom: 95px;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 20px rgba(227, 6, 19, 0.3);
}

.davi-float img {
    width: 100%;
    height: auto;
}

.whatsapp-float:hover,
.davi-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.2);
}

/* Ajustes para móvil */
@media (max-width: 900px) {
    .whatsapp-float {
        display: flex !important;
        width: 56px !important;
        height: 56px !important;
        bottom: 20px !important;
        right: 15px !important;
        font-size: 1.8rem !important;
        z-index: 9997 !important;
        position: fixed !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .davi-float,
    .pse-float {
        display: flex !important;
        width: 56px !important;
        height: 56px !important;
        bottom: 85px !important;
        right: 15px !important;
        z-index: 9997 !important;
        position: fixed !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .pse-float img {
        width: 85px !important;
        height: 85px !important;
    }
    
    .scroll-to-top {
        z-index: 9996 !important;
        display: flex !important;
        visibility: visible !important;
    }
    
    .scroll-to-top.show {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* ========== Animaciones Generales ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =============================
   Animaciones generales
   Keyframes para efectos visuales en elementos
============================= */

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

/* === Formularios y Footer (Migrados desde styles.css) === */
.form-container {
    padding: 2rem;
}

/* =============================
    Contenedor de formularios
    Estilos para inputs, labels y layout de formularios
============================= */

.form-container h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 800;
}

form {
    max-width: 700px;
    margin: auto;
}

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

.field {
    position: relative;
}

.input {
    width: 100%;
    padding: 1.2rem 1rem 0.6rem 1rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    transition: var(--transition);
    font-size: 1rem;
    background: #f9f9f9;
}

.input::placeholder {
    color: transparent;
}

.input:focus+label,
.input:not([placeholder=" "])+label {
    top: 0.35rem;
    font-size: 0.75rem;
    color: var(--primary);
}

.field.full-width {
    grid-column: 1 / -1;
}

.floating-section {
    background: #fff;
    border-radius: 2.5rem;
    box-shadow: 0 8px 32px rgba(134, 117, 117, 0.72);
    margin: 3rem auto 2rem auto;
    padding: 50px 32px;
    max-width: 1100px;
    transition: box-shadow 0.4s, transform 0.4s;
}

.floating-section:hover {
    box-shadow: 0 16px 48px rgba(0, 12, 178, 0.552);
    transform: translateY(-6px);
}

/* Se elimina la regla .map-section */


/* ========== OLA DEL FOOTER (NUEVO) ========== */
.footer-wave {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 3rem; /* Añade espacio sobre la ola */
    z-index: 2;
}

/* =============================
    Ola decorativa del footer
    SVG para fondo del pie de página
============================= */

/* Cambia el color del logo del footer (PNG/JPG: filtro, SVG: fill) */
.footer-logo {
    /* Para PNG/JPG: blanco */
    filter: brightness(0) invert(1);
    /* Para SVG: blanco */
    fill: #fff;
    width: 280px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
    transition: filter 0.3s, fill 0.3s;
}

/* =============================
    Logo del footer
    Filtros y estilos para el logo en el pie de página
============================= */

.footer-wave svg {
    display: block;
    width: 100vw;
    min-width: 100vw;
    height: 110px;
    max-width: 100vw;
}

footer {
    background: var(--secondary);
    color: #fff;
    padding: 4rem 1rem 2rem 1rem;
    position: relative;
}

footer a {
    color: #fff;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


.footer-section {
    margin: 20px 0;
    text-align: left;
    min-width: 0;
    word-break: break-word;
}
@media (max-width: 900px) {
    .footer-top {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    gap: 4rem;
        padding: 0 0.5rem;
    }
    .footer-section {
        text-align: center;
        margin: 10px 0;
    }
    .footer-section.about {
        align-items: center;
    }
}


/* Sección de la empresa (logo, texto y redes) */
.footer-section.about {
    flex-basis: 280px; /* Un poco más de espacio para la sección del logo */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alineado a la izquierda en escritorio */
}

/* =============================
    Sección de la empresa en el footer
    Layout para logo, texto y redes sociales
============================= */

.footer-section.about p {
    color: #ccc;
    font-size: 0.9em;
    text-align: left; /* Mantenemos el párrafo a la izquierda */
}

.footer-section.about .socials {
    display: flex;
    gap: 1rem;
    justify-content: flex-start; /* Alineado a la izquierda en escritorio */
    margin-top: 15px;
}

.footer-section.about .socials a {
    font-size: 1.7rem;
    color: #fff;
    transition: color 0.3s ease;
}

.footer-section.about .socials a:hover {
    color: var(--primary);
}

/* Sección de enlaces rápidos */
.footer-section h2 {
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-weight: 800;
    color: #fff;
}

.footer-section.quick-links ul {
    list-style: none;
    padding: 0;
}

.footer-section.quick-links {
    margin-left: 4rem;
}

/* =============================
    Sección de enlaces rápidos en el footer
    Estilos para links y listas rápidas
============================= */

@media (max-width: 900px) {
    .footer-section.quick-links {
        margin-left: 0;
        margin-top: 3rem;
    }
}

.footer-section.quick-links li {
    margin-bottom: 10px;
}

.footer-section a {
    font-size: 1rem;
    line-height: 1.7;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Sección de contacto */
.footer-section.contact-info {
    text-align: left;
}

/* =============================
    Sección de contacto en el footer
    Layout y estilos para información de contacto
============================= */

.contact-item {
    display: flex; /* Icono y texto en línea */
    align-items: flex-start; /* Alineación vertical */
    gap: 1rem; /* Espacio entre icono y texto */
    margin-bottom: 15px;
    text-align: left;
}

.contact-item i {
    font-size: 1.2rem;
    margin-top: 0.2em; /* Ajuste vertical del icono */
    color: var(--primary);
    flex-shrink: 0; /* Evita que el icono se encoja */
}

.contact-item .sub-text {
    font-size: 0.85em;
    color: #ccc;
    display: block;
    margin-top: 5px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    line-height: 1.4;
}

.contact-details strong {
    color: #fff;
    font-weight: 600;
}

.contact-details span {
    color: #e0e0e0;
    font-size: 0.95rem;
}

.contact-details small {
    color: #bbb;
    font-size: 0.8rem;
    font-style: italic;
}

/* Sección de suscripción */
.footer-section.newsletter {
    text-align: left;
}

/* =============================
    Sección de suscripción en el footer
    Estilos para formulario de newsletter
============================= */

.newsletter p {
    font-size: 1rem;
    line-height: 1.7;
    color: #ccc;
}

.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.newsletter .text-input {
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #2a3e59;
    color: #fff;
    font-size: 1rem;
    width: 100%;
}

.newsletter .text-input::placeholder {
    color: #ccc;
}

.newsletter .btn-subscribe {
    padding: 12px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 100%;
}

.newsletter .btn-subscribe:hover {
    background-color: #c0392b;
}

/* Línea de copyright */
.footer-bottom {
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #3d5a73;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

/* =============================
    Línea de copyright en el footer
    Estilos para la línea final del pie de página
============================= */

@media (max-width: 900px) {
    .footer-top {
        flex-direction: column;
        align-items: center; /* Centra las secciones cuando se apilan */
        gap: 1rem;
    }
    .footer-section {
        text-align: center; /* Centra el texto dentro de cada sección */
        width: 100%;
        max-width: 350px; /* Limita el ancho para mejor legibilidad */
        flex-basis: auto;
    }
    .footer-section.about,
    .footer-section.about .socials {
        align-items: center; /* Centra el logo y los iconos sociales */
        justify-content: center;
    }
    .footer-section.about p {
        text-align: center; /* Centra el párrafo en móvil */
    }
    .contact-item {
        flex-direction: column; /* Apila icono y texto */
        align-items: center;
        gap: 0.5rem;
    }
    .contact-item i {
        margin-top: 0;
    }

    /* Nuevo: Poner Enlaces Rápidos y Contacto uno al lado del otro en móvil */
    .footer-section.quick-links,
    .footer-section.contact-info {
        flex-basis: 45%; /* Cada uno ocupa casi la mitad */
        flex-grow: 1;
        margin-top: 1rem; /* Reduce el margen superior */
    }
}


/* === Galería, Testimonios y Slider (Migrados desde styles.css) === */
#gallery .cards {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================
    Galería, testimonios y slider
    Estilos para tarjetas de galería y testimonios expandibles
============================= */

/* Tarjetas de testimonios expandibles */
.testimonial-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 1.2rem 1rem;
    margin: 1rem auto;
    max-width: 400px;
    min-width: 260px;
    transition: box-shadow 0.3s, transform 0.2s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

/* =============================
    Tarjetas de testimonios expandibles
    Estilos para testimonios con texto desplegable
============================= */
.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(230,57,70,0.18);
    transform: translateY(-6px) scale(1.03);
}
.testimonial-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.testimonial-card .client-info {
    color: var(--secondary);
    font-weight: 700;
    margin-top: 0.5rem;
}
.testimonial-card .testimonial-text {
    font-size: 1rem;
    color: #444;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
}
.testimonial-card.active .testimonial-text {
    max-height: 400px;
    opacity: 1;
    margin-top: 1rem;
}
.testimonial-card .expand-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 1em;
    padding: 0.4em 1.1em;
    margin-top: 0.7em;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s;
}
.testimonial-card .expand-btn:hover {
    background: var(--secondary);
}

.gallery a {
    display: block;
    width: 388px;
    height: 180px;
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    transition: box-shadow 0.3s, transform 0.3s;
}

.gallery a:hover {
    box-shadow: 0 16px 48px rgba(29, 53, 87, 0.18);
    transform: translateY(-6px) scale(1.03);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1.5rem;
    margin: 0;
    padding: 0;
}

#testimonials {
    padding-bottom: 3rem;
}

#testimonials .container {
    padding-top: 3rem;
    max-width: 900px;
    overflow: hidden;
    position: relative;
    padding-bottom: 2rem;
}

#testimonials .slides {
    display: flex;
    transition: transform 0.5s ease;
    cursor: grab;
}

#testimonials .testimonial {
    min-width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#testimonials .testimonial img {
    display: block;
    margin: 0 auto 1.2rem auto;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

#testimonials .navigation {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    padding-top: 1.5rem;
}

#testimonials .nav-dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

#testimonials .nav-dot.active {
    background-color: var(--primary);
}

/* Layout profesional actualizado para los planes */
.plans-flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3.5rem;
    padding: 3.5rem 0 2.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
    background: none;
    border: none;
    box-shadow: none;
}

/* =============================
    Layout profesional para los planes
    Estilos para la disposición de las tarjetas de planes
============================= */

.plan-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    min-width: 220px;
    max-width: 260px;
    position: relative;
}

.plan-img-top {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 0.7rem;
}

.plan-img-top .plan-image {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: #f7f7f7;
    transition: box-shadow 0.3s, transform 0.3s;
}

.plan-img-top .plan-discount {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 1em 0 1em 0;
    padding: 0.4em 1.1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    z-index: 3;
}

.plan-label {
    display: block;
    margin: 1.1rem auto 0.2rem auto;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 1.2em;
    padding: 0.5em 1.5em;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: background 0.3s, color 0.3s;
    z-index: 5;
}

.plan-label:hover {
    background: var(--primary);
    color: #fff;
}

.plan-hover-link:hover .plan-image {
    box-shadow: 0 8px 32px rgba(0, 53, 128, 0.18);
    transform: scale(1.08);
}

.plan-block:hover .plan-info-box,
.plan-block:focus-within .plan-info-box {
    opacity: 1;
    pointer-events: auto;
}

.plan-info-box {
    width: 100%;
    max-width: 240px;
    background: #f8fafc;
    border-radius: 1em;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 0.7em 1em;
    margin-top: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    position: absolute;
    left: 50%;
    top: 110%;
    transform: translateX(-50%);
    z-index: 10;
}

.plan-info-content {
    font-size: 1rem;
    color: var(--primary);
    text-align: center;
}

.plan-card .card-content {
    flex-grow: 1;
    justify-content: flex-start;
}

.service-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: color 0.4s ease;
}

.service-card h3 {
    color: var(--dark);
    font-size: 1.25rem;
    transition: color 0.4s ease;
    margin: 0;
}

.card-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.card-wave svg {
    width: 100%;
    height: 100%;
}

.service-card:hover,
.plan-card:hover {
    box-shadow: 0 24px 64px rgba(0, 53, 128, 0.18);
    transform: translateY(-16px) scale(1.10);
}

.service-card:hover .card-wave,
.plan-card:hover .card-wave {
    transform: translateY(40%);
}

.service-card:hover .card-content,
.plan-card:hover .card-content {
    transform: translateY(-10px);
}

.service-card:hover i,
.service-card:hover h3,
.plan-card:hover h3 {
    color: #c30000;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card-wave svg path {
    fill: rgba(29, 53, 87, 0.85);
}

.service-card.card--red .card-wave svg path,
.plan-card.card--red .card-wave svg path {
    fill: rgba(0, 0, 0, 0.85);
}

.plan-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

/* =============================
    Imagen de la tarjeta de plan
    Estilos para la imagen superior de cada plan
============================= */

.plan-card h3 {
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--secondary);
    font-weight: 800;
}

/* =============================
    Título de la tarjeta de plan
    Estilos para el encabezado de cada plan
============================= */

.plan-card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

/* =============================
    Enlace de la tarjeta de plan
    Permite que toda la tarjeta sea clickeable
============================= */

/* ========== SECCIÓN DE PLANES ========== */
#pricing .cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
    padding-bottom: 2rem;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

/* =============================
    Contenedor de tarjetas de planes
    Layout principal para mostrar todas las tarjetas de planes
============================= */

.plan-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 350px;
    background-color: rgb(255, 255, 255);
    color: var(--light);
    border-radius: 65px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(164, 157, 157, 0.557);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    min-width: 250px;
    margin: 0;
}

/* =============================
    Tarjeta de plan
    Estilos visuales y de interacción para cada plan
============================= */

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(21, 25, 255, 0.557);
}

/* =============================
    Hover de tarjeta de plan
    Efecto visual al pasar el mouse sobre la tarjeta
============================= */

.plan-card .card-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
}

/* =============================
    Contenido de la tarjeta de plan
    Layout interno para el contenido principal de cada plan
============================= */

.plan-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: -2rem;
}

/* =============================
    Imagen circular de plan
    Estilos para la imagen destacada en la tarjeta
============================= */

.plan-card h3 {
    color: var(--light);
    font-weight: 800;
    margin-bottom: -0.5rem;
}

/* =============================
    Título alternativo de plan
    Estilos para el encabezado en modo alternativo
============================= */

.plan-card .discount {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

/* =============================
    Descuento de la tarjeta de plan
    Estilos para mostrar el descuento en cada plan
============================= */

.plan-details {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 2.5rem 1rem 1rem;
    background-color: rgba(0, 5, 139, 0.692);
    color: var(--light);
    z-index: 3;
    transition: bottom 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* =============================
    Detalles de la tarjeta de plan
    Información adicional que se despliega al interactuar
============================= */

.plan-details ul {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
    max-width: 200px;
}

/* =============================
    Lista de detalles de plan
    Estilos para la lista de beneficios o características
============================= */

.plan-details li {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

/* =============================
    Ítem de detalle de plan
    Estilos para cada elemento de la lista de detalles
============================= */

.plan-details .btn-more-info {
    padding: 0.7rem 1.8rem;
    font-size: 0.8rem;
    background: var(--secondary);
    border-radius: 15px;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

/* =============================
    Botón de más información en plan
    Estilos para el botón que despliega información adicional
============================= */

.plan-details .btn-more-info:hover {
    background-color: #ff1313;
    transform: translateY(-2px);
}

/* =============================
    Hover del botón de más información
    Efecto visual al pasar el mouse sobre el botón
============================= */

.plan-card:hover .plan-details {
    bottom: 0;
}

/* =============================
    Mostrar detalles de plan al hover
    Despliega la información adicional al interactuar
============================= */

.plan-card .card-wave {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 150px;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

/* =============================
    Ola decorativa en tarjeta de plan
    SVG animado para fondo de la tarjeta
============================= */

.plan-card .card-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* =============================
    SVG de la ola en tarjeta de plan
    Estilos para el elemento SVG
============================= */

.plan-card .card-wave svg path {
    fill: rgba(149, 20, 20, 0.7);
    transition: fill 0.5s ease;
}

/* =============================
    Color de la ola en tarjeta de plan
    Estilos para el color y transición de la ola
============================= */

.plan-card:hover .card-wave svg path {
    fill: rgba(11, 3, 167, 0.9);
}

/* =============================
    Hover de la ola en tarjeta de plan
    Cambia el color de la ola al interactuar
============================= */

/* =================================================================== */
/* ========== MEDIA QUERIES CONSOLIDADAS ========== */
/* =================================================================== */

/* =================================================================== */
/* ========== MEDIA QUERIES CONSOLIDADAS ========== */
/* Media queries para adaptar el layout a dispositivos móviles y tablets
    Incluye ajustes para menús, hero, servicios, galería, formularios y más
=================================================================== */

@media (max-width: 900px) {
    /* --- Layout General --- */
    .topbar .container.wrap {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        text-align: center;
    }
    .topbar .socials {
        justify-content: center;
        margin: 0.5rem 0;
    }
    .topbar span {
        display: block;
        margin: 0.2rem 0;
    }
    .container.nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        position: relative;
    }
    .nav-left, .nav-right {
        display: none !important;
    }
    .brand {
        margin: 0 auto;
        z-index: 2;
    }
    .nav-toggle {
        display: block !important;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        background: none;
        border: none;
        cursor: pointer;
        width: 44px;
        height: 44px;
    }
    .menu {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        box-shadow: 0 8px 32px rgba(0,0,0,0.13);
        border-radius: 0 0 1.5rem 1.5rem;
        z-index: 10;
        padding: 1.2rem 0.5rem;
        gap: 1.2rem;
        align-items: center;
        width: 100vw;
        max-width: 100vw;
        transition: max-height 0.3s;
    }
    .menu a {
        font-size: 1.2rem;
        color: var(--secondary, #333);
        padding: 0.7rem 0;
        width: 100%;
        text-align: center;
        border-radius: 0.7rem;
        transition: background 0.2s;
    }
    .menu a:hover {
        background: #f8fafc;
    }

    /* --- Secciones --- */
    .hero {
        flex-direction: column;
        min-height: unset;
        padding-bottom: 60px; /* Espacio para que las olas se vean */
    }
    .hero .split {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .hero-text {
        width: 100vw;
        max-width: 98vw;
        text-align: center;
        padding: 0 0.5rem;
    }
    .hero-text h1 { font-size: 2.1rem; }
    .hero .lead { font-size: 1.05rem; }
    .hero-cta, .stats {
        flex-direction: column;
        gap: 0.7rem;
        align-items: center;
    }
    .hero-visual {
        width: 100vw;
        max-width: 98vw;
        justify-content: center;
        margin: 0 auto;
    }
    .hero-carousel {
        width: 85vw; /* Ocupa el 85% del ancho */
        height: 85vw; /* Misma altura para que sea un círculo */
        max-width: 400px; /* Un poco más grande */
        max-height: 400px; /* Un poco más grande */
        min-width: 180px;
        min-height: 180px;
        margin-bottom: -50px; /* Mueve el carrusel hacia abajo para que se superponga */
    }
    .services-munchkin {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 1.2rem;
        padding: 1rem 0.2rem;
        overflow-x: visible !important;
    }
    .service-card-wrap {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        margin: 0 auto 1.2rem auto !important;
        padding: 0 !important;
    }
    .service-card, .plan-card, .card {
        width: 100% !important;
        min-width: 90vw !important;
        max-width: 98vw !important;
        height: auto !important;
        box-sizing: border-box;
        margin: 0 auto 1.2rem auto !important;
    }
    .redes-sociales-row, .about-horizontal, .map-form-libre, .contact-extra-flex {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .about-video { max-width: 90vw; width: 100%; }
    .about-text, .about-text-top { max-width: 95vw; }
    .map-form-libre>div:first-child, .map-form-libre .form-container, .contact-extra-flex #map, .contact-extra-flex .form-container {
        max-width: 100vw;
        min-width: 0;
        height: 340px;
        padding: 1.2rem 0.5rem;
    }
    .map-form-libre .form-title, .map-form-libre .map-title { font-size: 1.3rem; margin-bottom: 0.7rem; }
    .red-social-embed { width: 95vw; max-width: 320px; min-width: 180px; min-height: 220px; max-height: 340px; }
    .pricing-cards { gap: 1.2rem; flex-wrap: wrap; }
    .plan-image { width: 260px; height: 260px; margin-bottom: 1.2rem; }
}

@media (max-width: 600px) {
    .service-card, .plan-card, .card { max-width: 100vw !important; padding: 0.7rem 0.2rem; }
    .services-munchkin { gap: 0.7rem; padding: 0.5rem 0.1rem; }
    .menu { padding: 0.7rem 0.2rem; gap: 0.7rem; } 
    .menu a { font-size: 1.05rem; padding: 0.5rem 0; }
    .hero-text h1 { font-size: 1.3rem; }
    .hero-carousel { width: 90vw; height: 90vw; max-width: 320px; max-height: 320px; min-width: 120px; min-height: 120px; margin-bottom: -40px; }
    .plan-image { width: 80px; height: 80px; }
}

/* =================================================================== */
/* ========== MEDIA QUERIES CONSOLIDADAS ========== */
/* =================================================================== */

@media (max-width: 900px) {
    /* --- Layout General --- */
    .topbar .container.wrap {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        text-align: center;
    }
    .topbar .socials {
        justify-content: center;
        margin: 0.5rem 0;
    }
    .topbar span {
        display: block;
        margin: 0.2rem 0;
    }
    .container.nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        position: relative;
    }
    .nav-left, .nav-right {
        display: none !important;
    }
    .brand {
        margin: 0 auto;
        z-index: 2;
    }
    .nav-toggle {
        display: block !important;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        background: none;
        border: none;
        cursor: pointer;
        width: 44px;
        height: 44px;
    }
    .menu {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        box-shadow: 0 8px 32px rgba(0,0,0,0.13);
        border-radius: 0 0 1.5rem 1.5rem;
        z-index: 10;
        padding: 1.2rem 0.5rem;
        gap: 1.2rem;
        align-items: center;
        width: 100vw;
        max-width: 100vw;
        transition: max-height 0.3s;
    }
    .menu a {
        font-size: 1.2rem;
        color: var(--secondary, #333);
        padding: 0.7rem 0;
        width: 100%;
        text-align: center;
        border-radius: 0.7rem;
        transition: background 0.2s;
    }
    .menu a:hover {
        background: #f8fafc;
    }

    /* --- Secciones --- */
    .hero {
        flex-direction: column;
        min-height: unset;
        padding-bottom: 2rem;
    }
    .hero .split {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .hero-text {
        width: 100vw;
        max-width: 98vw;
        text-align: center;
        padding: 0 0.5rem;
    }
    .hero-text h1 { font-size: 2.1rem; }
    .hero .lead { font-size: 1.05rem; }
    .hero-cta, .stats {
        flex-direction: column;
        gap: 0.7rem;
        align-items: center;
    }
    .hero-visual {
        width: 100vw;
        max-width: 98vw;
        justify-content: center;
        margin: 0 auto;
    }
    .hero-carousel {
        width: 85vw; /* Ocupa el 85% del ancho */
        height: 85vw; /* Misma altura para que sea un círculo */
        max-width: 400px; /* Un poco más grande */
        max-height: 400px; /* Un poco más grande */
        min-width: 180px;
        min-height: 180px;
    }
    .services-munchkin {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 1.2rem;
        padding: 1rem 0.2rem;
        overflow-x: visible !important;
    }
    .service-card-wrap {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        margin: 0 auto 1.2rem auto !important;
        padding: 0 !important;
    }
    .service-card, .plan-card, .card {
        width: 100% !important;
        min-width: 90vw !important;
        max-width: 98vw !important;
        height: auto !important;
        box-sizing: border-box;
        margin: 0 auto 1.2rem auto !important;
    }
    .redes-sociales-row, .about-horizontal, .map-form-libre, .contact-extra-flex {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .about-video { max-width: 90vw; width: 100%; }
    .about-text, .about-text-top { max-width: 95vw; }
    .map-form-libre>div:first-child, .map-form-libre .form-container, .contact-extra-flex #map, .contact-extra-flex .form-container {
        max-width: 100vw;
        min-width: 0;
        height: 340px;
        padding: 1.2rem 0.5rem;
    }
    .map-form-libre .form-title, .map-form-libre .map-title { font-size: 1.3rem; margin-bottom: 0.7rem; }
    .red-social-embed { width: 95vw; max-width: 320px; min-width: 180px; min-height: 220px; max-height: 340px; }
    .pricing-cards { gap: 1.2rem; flex-wrap: wrap; }
    .plan-image { width: 260px; height: 260px; margin-bottom: 1.2rem; }
}

/* =============================
    Contenedores de testimonios - Tamaño uniforme
    Garantiza que todas las tarjetas tengan exactamente el mismo tamaño
============================= */
.testimonios-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    /* Tamaño fijo para todas las tarjetas */
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    height: 300px !important;
    min-height: 300px !important;
    
    /* Permitir expansión cuando está activo */
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Layout interno */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    
    /* Espaciado interno uniforme */
    padding: 1.5rem !important;
    box-sizing: border-box !important;
    
    /* Efectos visuales */
    background: #fff !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 8px 30px rgba(230,57,70,0.15) !important;
}

.testimonial-card img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin-bottom: 1rem !important;
    flex-shrink: 0 !important;
}

.testimonial-card .client-info {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--secondary) !important;
    margin: 0.5rem 0 !important;
    flex-shrink: 0 !important;
}

.testimonial-card .expand-btn {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 0.5rem 0 !important;
    flex-shrink: 0 !important;
}

.testimonial-card .expand-btn:hover {
    background: var(--secondary) !important;
    transform: scale(1.05) !important;
}

.testimonial-card .testimonial-text {
    flex-grow: 1 !important;
    font-size: 0.95rem !important;
    color: #555 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    margin-top: 1rem !important;
    
    /* Animación para expandir/contraer */
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease !important;
    
    /* Scroll personalizado para cuando está expandido */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
}

/* Estado expandido del texto */
.testimonial-card.active .testimonial-text {
    max-height: 200px !important;
    opacity: 1 !important;
    overflow-y: auto !important;
}

.testimonial-card .testimonial-text::-webkit-scrollbar {
    width: 6px;
}

.testimonial-card .testimonial-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.testimonial-card .testimonial-text::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Estado expandido de la tarjeta */
.testimonial-card.active {
    height: auto !important;
    min-height: 350px !important;
}

/* Responsive - Móviles */
@media (max-width: 768px) {
    .testimonios-cards {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .testimonial-card {
        width: 90% !important;
        min-width: 280px !important;
        max-width: 350px !important;
        height: 280px !important;
        min-height: 280px !important;
    }
    
    .testimonial-card.active {
        height: auto !important;
        min-height: 320px !important;
    }
    
    .testimonial-card img {
        width: 80px !important;
        height: 80px !important;
    }
}

@media (max-width: 600px) {
    .service-card, .plan-card, .card { max-width: 100vw !important; padding: 0.7rem 0.2rem; }
    .services-munchkin { gap: 0.7rem; padding: 0.5rem 0.1rem; }
    .menu { padding: 0.7rem 0.2rem; gap: 0.7rem; }
    .menu a { font-size: 1.05rem; padding: 0.5rem 0; }
    .hero-text h1 { font-size: 1.3rem; }
    .hero-carousel { width: 90vw; height: 90vw; max-width: 320px; max-height: 320px; min-width: 120px; min-height: 120px; }
    .plan-image { width: 80px; height: 80px; }
    
    .testimonial-card {
        width: 95% !important;
        min-width: 260px !important;
        max-width: 300px !important;
        height: 260px !important;
        min-height: 260px !important;
    }
    
    .testimonial-card.active {
        height: auto !important;
        min-height: 300px !important;
    }
}