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

:root {
    --violeta: #8B7AB8;
    --violeta-claro: #B8A8D9;
    --amarillo: #F4D35E;
    --verde: #95D5B2;
    --azul-pastel: #A8DADC;
    --blanco: #FFFFFF;
    --gris-claro: #F8F9FA;
    --texto: #2D3748;
    --violetaFuerte: #46364B;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--texto);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--violeta) 0%, var(--violeta-claro) 100%);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}
p {
    font-size: 12px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--blanco);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a.active {
   
    border-bottom: 3px solid var(--amarillo);
    border-radius: 8px 8px 0 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-agendar {
    background: var(--amarillo);
    color: var(--texto);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-agendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 211, 94, 0.4);
}

/* Menú móvil hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    background: none; 
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 70px;
    min-height: calc(100vh - 70px); 
    max-height: calc(100vh - 70px); 
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    z-index: 2;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 4rem 2rem;
    max-width: 700px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    border-radius: 15px;
    min-height: 300px;
    margin-left: auto;
    margin-right: 2rem;
    text-align: center;
}

.hero-content-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    width: 100%;
}

.hero-content-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--violetaFuerte);
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero p {
    font-size: 1.3rem;
    color: var(--violetaFuerte);
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.2s backwards;
}

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

.descripcion-hero {
    color: var(--violetaFuerte);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s 0.4s backwards;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--violeta);
    color: var(--blanco);
}
.btn-primary:hover {
    background: var(--amarillo);
    color: var(--violetaFuerte);
}

.btn-secondary {
    background: var(--amarillo);
    color: var(--violetaFuerte);
}
.btn-secondary:hover {
    background: var(--violeta);
    color: var(--amarillo);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Profesional - Estilo tarjeta */
.profesional {
    padding: 8rem 1rem;
    background-image: url('/build/images/fondo-profesional.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(255,255,255,0.7);
    background-blend-mode: lighten;
}

.profesional-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
     
}

.profesional-img {
    width: 100%;
    max-width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(139, 122, 184, 0.3);
    border: 8px solid var(--violeta-claro);
    transition: transform 0.3s;
   
}

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

.profesional-info h2 {
    color: var(--violeta);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profesional-info .subtitle {
    color: var(--verde);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profesional-info p {
    margin-bottom: 1.5rem;
    font-size: 18px;
}

.enfoque-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    background: var(--violeta-claro);
    color: var(--blanco);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Servicios */
.servicios {
    padding: 5rem 1rem;
    margin: 0 auto;
    background: #9f8fc73b;
}

/* NUEVA SECCIÓN: Especialidades */
.especialidades {
    padding: 5rem 1rem;
    background: var(--blanco);
}

.especialidades-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.especialidad-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.especialidad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(139, 122, 184, 0.15);
    border-color: var(--violeta-claro);
}

.especialidad-card h3 {
    color: var(--violeta);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.especialidad-card p {
    color: var(--texto);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--violeta);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--amarillo);
    margin: 1rem auto;
    border-radius: 2px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.servicio-card {
    background: var(--blanco);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-top: 5px solid var(--violeta);
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.servicio-card:hover::before {
    /* left: 100%; */
}

.servicio-card:nth-child(2) {
    border-top-color: var(--verde);
}

.servicio-card:nth-child(3) {
    border-top-color: var(--azul-pastel);
}

.servicio-card:hover {
    /* transform: translateY(-10px); */
    /* box-shadow: 0 15px 40px rgba(0,0,0,0.15); */
}

.servicio-card h3 {
    color: var(--violeta);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.servicio-card .precio {
    font-size: 1.5rem;
    color: var(--violetaFuerte);
    font-weight: bold;
    margin: 1rem 0;
}

.precio-original {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.descuento-badge {
    display: inline-block;
    background: var(--amarillo);
    color: var(--texto);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.servicio-card ul {
    list-style: none;
    margin: 1rem 0;
}

.servicio-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 14px;
}

.servicio-card li::before {
    content: '✓';
    color: var(--verde);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.btn-servicio {
    width: 100%;
    margin-top: 1.5rem;
    background: var(--violeta);
    color: var(--blanco);
    padding: 0.8rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-servicio:hover {
    background: var(--violeta-claro);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 122, 184, 0.3);
}

/* NUEVAS SECCIONES */

/* Metodología */
.metodologia {
    padding: 5rem 1rem;
    background: var(--blanco);
}

.metodologia-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.metodologia-info ul {
    list-style: none;
    margin-top: 1.5rem;
}

.metodologia-info li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.metodologia-info li::before {
    content: '●';
    color: var(--verde);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

.metodologia-info strong {
    color: var(--violeta);
}

/* FAQ */
.faq-container {
    background: var(--blanco);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.faq-container h3 {
    color: var(--violeta);
    margin-bottom: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid var(--gris-claro);
    margin-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    cursor: pointer;
    padding: 1rem;
    font-weight: 600;
    color: var(--violeta);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--gris-claro);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    padding: 0 1rem;
}

.faq-answer.active {
    max-height: 500px;
    padding: 1rem;
}

/* Infanto Juvenil */
.infanto {
    padding: 5rem 1rem;
    background: var(--gris-claro);
}

.infanto-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.infanto-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.infanto-card h3 {
    color: var(--violeta);
    margin-bottom: 1rem;
}

.infanto-info ul {
    list-style: none;
    margin-top: 1.5rem;
}

.infanto-info li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.infanto-info li::before {
    content: '●';
    color: var(--verde);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

/* Agenda */
.agenda {
    padding: 10rem 1rem;
    background: linear-gradient(135deg, var(--violeta-claro) 0%, var(--azul-pastel) 100%);
    position: relative;
    overflow: hidden;
}

.agenda-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

.agenda-info h2 {
    color: var(--blanco);
    margin-bottom: 1rem;
}

.agenda-info p {
    color: var(--blanco);
    margin-bottom: 2rem;
}

.agenda-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.agenda-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.agenda-card h3 {
    color: var(--violeta);
    margin-bottom: 1.5rem;
}

.agenda-card ul {
    list-style: none;
}

.agenda-card li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.agenda-card li::before {
    content: '✓';
    color: var(--verde);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.agenda-image {
    position: absolute;
    right: -5px;
    bottom: 4px;
    width: 232px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.agenda-professional-img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    object-position: bottom right;
}

/* Recursos */
.recursos {
    padding: 5rem 1rem;
    background: var(--blanco);
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.recurso-card {
    background: var(--gris-claro);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.recurso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.recurso-card h3 {
    color: var(--violeta);
    margin-bottom: 1rem;
}

.recurso-card p {
    color: var(--texto);
}

/* Blog */
.blog {
    background: var(--gris-claro);
    padding: 5rem 1rem;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-carousel {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.blog-grid {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    padding: 0 3rem;
}

.blog-card {
    background: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    min-width: calc((100% - 4rem) / 3);
    max-width: 350px;
    flex-shrink: 0;
}

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

.blog-img-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--gris-claro);
}

.blog-img-icon {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--violeta-claro), var(--azul-pastel));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: var(--violeta);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.blog-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.blog-excerpt {
    margin-bottom: 1rem;
    color: var(--texto);
    font-size: 0.9rem;
    line-height: 1.5;
}

.blog-link {
    color: var(--violeta);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.blog-link:hover {
    color: var(--verde);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--violeta);
    color: var(--blanco);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: var(--violeta-claro);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Vista del Blog */
.blog-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s;
}

.blog-view.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

.blog-article {
    background: var(--blanco);
    max-width: 800px;
    width: 100%;
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem auto;
    position: relative;
    animation: slideUp 0.4s;
}

.close-blog {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--violeta);
    color: var(--blanco);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.close-blog:hover {
    background: var(--violeta-claro);
    transform: rotate(90deg);
}

.blog-article h1 {
    color: var(--violeta);
    margin-bottom: 1rem;
}

.blog-article .meta {
    color: #999;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gris-claro);
}

.blog-article-content {
    line-height: 1.8;
}

.blog-article-content h2 {
    color: var(--violeta);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-article-content p {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--violeta) 0%, #6B5B95 100%);
    color: var(--blanco);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--amarillo);
}

.footer-section p, .footer-section a {
    color: var(--blanco);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--amarillo);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    /* background: var(--blanco); */
    color: var(--violeta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--amarillo);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--violeta) 0%, var(--violeta-claro) 100%);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }

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

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

    .hero {
        min-height: 50vh;
        max-height: 60vh;
    }

    .slide::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }

    .hero-content {
        padding: 2rem 1rem;
        left: 0;
        top: 0;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        max-width: 100%;
        z-index: 10; 
    }

    .hero h1, .title-hero {
        font-size: 1.5rem;
        color: var(--blanco) !important;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    }

    .hero p, .descripcion-hero {
        font-size: 1rem;
        color: var(--blanco) !important;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    }

    .cta-buttons {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .profesional {
        padding: 2rem 1rem;
    }

    .profesional-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        background: var(--blanco);
        padding: 2rem;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .profesional-img {
        margin: 0 auto;
        max-width: 200px;
        height: 200px;
        border: 5px solid var(--violeta-claro);
    }

    .profesional-info h2 {
        font-size: 1.5rem;
    }

    .profesional-info .subtitle {
        font-size: 1rem;
    }

    .profesional-info p {
        font-size: 0.95rem;
    }

    .enfoque-tags {
        justify-content: center;
    }

    .tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .servicios {
        padding: 2rem 1rem;
    }

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

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }

    .especialidades-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .servicio-card {
        padding: 1.2rem;
    }

    .servicio-card h3 {
        font-size: 1.3rem;
    }

    .servicio-card .precio {
        font-size: 1.5rem;
    }

    /* Nuevas secciones móvil */
    .metodologia-content,
    .infanto-content,
    .agenda-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Ocultar imagen de agenda en móvil */
    .agenda-image {
        display: none;
    }

    .recursos-grid {
        grid-template-columns: 1fr;
    }

    .blog {
        padding: 2rem 1rem;
    }

    .blog-carousel {
        padding: 1rem 0;
    }

    .blog-grid {
        padding: 0 1rem;
    }

    .blog-card {
        min-width: 280px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .blog-view.active {
        padding: 1rem;
    }

    .blog-article {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }

    .blog-article h1 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .profesional-img {
        max-width: 150px;
        height: 150px;
    }

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

    .servicio-card h3 {
        font-size: 1.2rem;
    }
}


/* Certificaciones */
.certificaciones {
    padding: 5rem 1rem;
    background: var(--gris-claro);
}

.certificaciones-container {
    max-width: 1200px;
    margin: 0 auto;
}

.certificaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.certificacion-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    min-width: 380px;
    min-height: 230px;
}

.certificacion-card:hover {
    /* transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(139, 122, 184, 0.2); */
    border-color: var(--violeta-claro);
}

.cert-image-container {
    /* width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--violeta-claro), var(--azul-pastel));
    border-radius: 50%;
    overflow: hidden; */
    position: absolute;
}

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

.cert-icon {
    font-size: 3.5rem;
    position: absolute;
    left: 276px;
    top: 122px;
}

.certificacion-card h3 {
    color: var(--violeta);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    min-height: 104px;
}

.certificacion-card h3 :hover {
    color: var(--violetaFuerte);
}

.certificacion-card .institucion {
    color: var(--verde);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.certificacion-card .ano {
    color: #999;
    font-size: 0.9rem;
}

/* Responsive certificaciones */
@media (max-width: 768px) {
    .certificaciones-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cert-image-container {
        width: 100px;
        height: 100px;
    }
}


  /* Floating Actions (WhatsApp + Back to Top) */
  .fab {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    border: 0;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
    will-change: transform, opacity;
  }
  .fab:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.22); }

  /* WhatsApp FAB — siempre visible */
  .fab-whatsapp {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    background: #25D366;   /* verde WhatsApp */
  }

  /* Back-to-top FAB — se oculta hasta hacer scroll */
  .fab-top {
    bottom: calc(1rem + env(safe-area-inset-bottom) + 64px); /* encima del WA */
    background: #5c6ac4;    /* puedes ajustar a tu paleta */
    opacity: 0; 
    pointer-events: none;
  }
  .fab-top.is-visible { opacity: 1; pointer-events: auto; }

  /* Tamaño iconos */
  .fab svg { width: 28px; height: 28px; }

  /* Accesibilidad/usuarios sensibles a movimiento */
  @media (prefers-reduced-motion: reduce) {
    .fab { transition: none; }
  }

  /* Responsive (mejor toque en móviles) */
  @media (max-width: 480px) {
    .fab { width: 56px; height: 56px; }
    .fab svg { width: 26px; height: 26px; }
  }

/* CONTACTO RÁPIDO */
.contacto-rapido {
    padding: 4rem 1rem;
    text-align: center;
    background-color: #f7f9fa;
  }

  .contacto-rapido .section-title {
    margin-bottom: 0.5rem;
  }

  .contacto-leyenda {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2.5rem;
  }

  .contacto-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
  }

  .contacto-imagen {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
  }

  .contacto-imagen img {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }

  .contacto-form {
    flex: 1 1 60%;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    text-align: left;
  }

  .contacto-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
  }

  .contacto-form input,
  .contacto-form textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
  }

  .contacto-form input:focus,
  .contacto-form textarea:focus {
    outline: none;
    border-color: #5c6ac4;
    box-shadow: 0 0 0 2px rgba(92, 106, 196, 0.2);
  }

  .contacto-form .btn {
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    font-size: 1.05rem;
    border-radius: 8px;
  }

  .form-message {
    margin-top: 0.8rem;
    font-weight: 500;
  }

  /* Ocultar imagen en móviles */
  @media (max-width: 768px) {
    .contacto-wrapper {
      flex-direction: column;
      gap: 2rem;
    }

    .contacto-imagen {
      display: none;
    }

    .contacto-form {
      width: 100%;
    }
  }

  /* Overlay del modal */
  .service-modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.75);
      z-index: 9999;
      overflow-y: auto;
      padding: 2rem 1rem;
      animation: fadeIn 0.3s ease;
  }

  .service-modal-overlay.active {
      display: flex;
      align-items: center;
      justify-content: center;
  }

  /* Contenedor del modal */
  .service-modal {
      background: white;
      max-width: 900px;
      width: 100%;
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      position: relative;
      animation: slideUp 0.4s ease;
      overflow: hidden;
  }

  /* Header del modal */
  .service-modal-header {
      background: linear-gradient(135deg, #8B7AB8 0%, #B8A8D9 100%);
      color: white;
      padding: 2rem;
      position: relative;
  }

  .service-modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .service-modal-close:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: rotate(90deg);
  }

  .service-modal-header h2 {
      margin: 0 0 0.5rem 0;
      font-size: 2rem;
  }

  .service-modal-header .tipo {
      font-size: 1.1rem;
      opacity: 0.9;
      font-weight: 600;
  }

  .service-badge {
      display: inline-block;
      background: #F4D35E;
      color: #2D3748;
      padding: 0.4rem 1rem;
      border-radius: 20px;
      font-weight: 600;
      font-size: 0.9rem;
      margin-top: 0.5rem;
  }

  /* Cuerpo del modal */
  .service-modal-body {
      padding: 2rem;
  }

  /* Precio destacado */
  .service-price-section {
      background: linear-gradient(135deg, #F8F9FA 0%, #E8EAF6 100%);
      padding: 2rem;
      border-radius: 15px;
      text-align: center;
      margin-bottom: 2rem;
  }

  .service-price-original {
      text-decoration: line-through;
      color: #999;
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
  }

  .service-price-current {
      font-size: 3rem;
      font-weight: bold;
      color: #8B7AB8;
      margin: 0.5rem 0;
  }

  .service-price-discount {
      background: #E63946;
      color: white;
      padding: 0.5rem 1.5rem;
      border-radius: 25px;
      font-size: 1.2rem;
      font-weight: 600;
      display: inline-block;
      margin-top: 0.5rem;
  }

  /* Descripción */
  .service-description {
      margin-bottom: 2rem;
      line-height: 1.8;
      color: #2D3748;
      font-size: 1.05rem;
  }

  /* Características */
  .service-features {
      margin-bottom: 2rem;
  }

  .service-features h3 {
      color: #8B7AB8;
      margin-bottom: 1rem;
      font-size: 1.3rem;
  }

  .service-features ul {
      list-style: none;
      padding: 0;
  }

  .service-features li {
      padding: 0.8rem 0;
      border-bottom: 1px solid #E2E8F0;
      position: relative;
      padding-left: 2rem;
      line-height: 1.6;
  }

  .service-features li:last-child {
      border-bottom: none;
  }

  .service-features li::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: #95D5B2;
      font-weight: bold;
      font-size: 1.2rem;
  }

  /* Planes adicionales */
  .service-plans {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
  }

  .plan-card {
      background: white;
      border: 2px solid #E2E8F0;
      border-radius: 15px;
      padding: 1.5rem;
      transition: all 0.3s;
      cursor: pointer;
  }

  .plan-card:hover {
      border-color: #8B7AB8;
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(139, 122, 184, 0.2);
  }

  .plan-card.featured {
      border-color: #8B7AB8;
      background: linear-gradient(135deg, #F8F9FA 0%, #E8EAF6 100%);
  }

  .plan-card h4 {
      color: #8B7AB8;
      margin-bottom: 0.5rem;
  }

  .plan-price {
      font-size: 1.8rem;
      font-weight: bold;
      color: #2D3748;
      margin: 0.5rem 0;
  }

  .plan-duration {
      color: #718096;
      font-size: 0.9rem;
      margin-bottom: 1rem;
  }

  /* Botones de acción */
  .service-modal-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
  }

  .btn-modal {
      flex: 1;
      min-width: 200px;
      padding: 1.2rem 2rem;
      border: none;
      border-radius: 30px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
  }

  .btn-modal-primary {
      background: #8B7AB8;
      color: white;
  }

  .btn-modal-primary:hover {
      background: #6B5B95;
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(139, 122, 184, 0.4);
  }

  .btn-modal-secondary {
      background: #F4D35E;
      color: #2D3748;
  }

  .btn-modal-secondary:hover {
      background: #E5C34E;
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(244, 211, 94, 0.4);
  }

  /* Garantía / Info adicional */
  .service-guarantee {
      background: #E8F5E9;
      padding: 1.5rem;
      border-radius: 15px;
      margin-top: 2rem;
      border-left: 4px solid #95D5B2;
  }

  .service-guarantee h4 {
      color: #2D3748;
      margin-bottom: 0.5rem;
  }

  .service-guarantee p {
      margin: 0;
      color: #4A5568;
  }

  /* Animaciones */
  @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
  }

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

  /* Responsive */
  @media (max-width: 768px) {
      .service-modal {
          margin: 1rem;
      }

      .service-modal-header h2 {
          font-size: 1.5rem;
      }

      .service-price-current {
          font-size: 2.5rem;
      }

      .service-modal-actions {
          flex-direction: column;
      }

      .btn-modal {
          min-width: 100%;
      }

      .service-plans {
          grid-template-columns: 1fr;
      }
  }

  /* Tags de beneficios */
  .benefit-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 1.5rem 0;
  }

  .benefit-tag {
      background: #E8EAF6;
      color: #8B7AB8;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
  }



/* Agregar al final de app.css */

/* Hacer servicios clickeables con efecto hover mejorado */
.servicio-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.servicio-card:hover {
    /* transform: translateY(-12px) scale(1.02); */
    /* box-shadow: 0 20px 50px rgba(0,0,0,0.2); */
}

.servicio-card:active {
    transform: translateY(-10px) scale(1.01);
}

/* Efecto en el botón dentro de la tarjeta */
.servicio-card .btn-servicio {
    position: relative;
    overflow: hidden;
}

.servicio-card .btn-servicio::after {
    content: '→';
    position: absolute;
    right: 1rem;
    opacity: 0;
    transition: all 0.3s;
}

.servicio-card:hover .btn-servicio::after {
    /* opacity: 1;
    right: 0.5rem; */
}

/* Animación de pulso sutil en tarjetas con descuento */
.servicio-card:has(.descuento-badge) {
    animation: subtlePulse 3s infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    }
    50% {
        box-shadow: 0 8px 30px rgba(244, 211, 94, 0.3);
    }
}

/* Mejorar badge de descuento */
.descuento-badge {
    animation: wiggle 2s infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* Indicador visual de "clickeable" */
.servicio-card::before {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: rgba(139, 122, 184, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicio-card:hover::before {
    /* background: rgba(139, 122, 184, 0.2);
    transform: scale(1.2); */
}


    .nav-links a.active { border-bottom: 2px solid currentColor; }
    .faq-question { cursor: pointer; }

 
    .service-modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.75);
      z-index: 9999;
      overflow-y: auto;
      padding: 2rem 1rem;
      animation: fadeInPopup 0.3s ease;
    }
  
    .service-modal-overlay.active {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .service-modal {
      background: white;
      max-width: 900px;
      width: 100%;
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      position: relative;
      animation: slideUpPopup 0.4s ease;
      overflow: hidden;
    }
  
    .service-modal-header {
      background: linear-gradient(135deg, #8B7AB8 0%, #B8A8D9 100%);
      color: white;
      padding: 2rem;
      position: relative;
    }
  
    .service-modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .service-modal-close:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: rotate(90deg);
    }
  
    .service-modal-header h2 {
      margin: 0 0 0.5rem 0;
      font-size: 2rem;
    }
  
    .service-modal-header .tipo {
      font-size: 1.1rem;
      opacity: 0.9;
      font-weight: 600;
    }
  
    .service-badge {
      display: inline-block;
      background: #F4D35E;
      color: #2D3748;
      padding: 0.4rem 1rem;
      border-radius: 20px;
      font-weight: 600;
      font-size: 0.9rem;
      margin-top: 0.5rem;
    }
  
    .service-modal-body {
      padding: 2rem;
    }
  
    .service-price-section {
      background: linear-gradient(135deg, #F8F9FA 0%, #E8EAF6 100%);
      padding: 2rem;
      border-radius: 15px;
      text-align: center;
      margin-bottom: 2rem;
    }
  
    .service-price-original {
      text-decoration: line-through;
      color: #999;
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
    }
  
    .service-price-current {
      font-size: 3rem;
      font-weight: bold;
      color: #8B7AB8;
      margin: 0.5rem 0;
    }
  
    .service-price-discount {
      background: #E63946;
      color: white;
      padding: 0.5rem 1.5rem;
      border-radius: 25px;
      font-size: 1.2rem;
      font-weight: 600;
      display: inline-block;
      margin-top: 0.5rem;
    }
  
    .service-description {
      margin-bottom: 2rem;
      line-height: 1.8;
      color: #2D3748;
      font-size: 1.05rem;
    }
  
    .benefit-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 1.5rem 0;
    }
  
    .benefit-tag {
      background: #E8EAF6;
      color: #8B7AB8;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
    }
  
    .service-features {
      margin-bottom: 2rem;
    }
  
    .service-features h3 {
      color: #8B7AB8;
      margin-bottom: 1rem;
      font-size: 1.3rem;
    }
  
    .service-features ul {
      list-style: none;
      padding: 0;
    }
  
    .service-features li {
      padding: 0.8rem 0;
      border-bottom: 1px solid #E2E8F0;
      position: relative;
      padding-left: 2rem;
      line-height: 1.6;
    }
  
    .service-features li:last-child {
      border-bottom: none;
    }
  
    .service-features li::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: #95D5B2;
      font-weight: bold;
      font-size: 1.2rem;
    }
  
    .service-plans {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }
  
    .plan-card {
      background: white;
      border: 2px solid #E2E8F0;
      border-radius: 15px;
      padding: 1.5rem;
      transition: all 0.3s;
    }
  
    .plan-card:hover {
      border-color: #8B7AB8;
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(139, 122, 184, 0.2);
    }
  
    .plan-card.featured {
      border-color: #8B7AB8;
      background: linear-gradient(135deg, #F8F9FA 0%, #E8EAF6 100%);
    }
  
    .plan-card h4 {
      color: #8B7AB8;
      margin-bottom: 0.5rem;
    }
  
    .plan-price {
      font-size: 1.8rem;
      font-weight: bold;
      color: #2D3748;
      margin: 0.5rem 0;
    }
  
    .plan-duration {
      color: #718096;
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }
  
    .service-modal-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }
  
    .btn-modal {
      flex: 1;
      min-width: 200px;
      padding: 1.2rem 2rem;
      border: none;
      border-radius: 30px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }
  
    .btn-modal-primary {
      background: #8B7AB8;
      color: white;
    }
  
    .btn-modal-primary:hover {
      background: #6B5B95;
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(139, 122, 184, 0.4);
    }
  
    .btn-modal-secondary {
      background: #F4D35E;
      color: #2D3748;
    }
  
    .btn-modal-secondary:hover {
      background: #E5C34E;
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(244, 211, 94, 0.4);
    }
  
    .service-guarantee {
      background: #E8F5E9;
      padding: 1.5rem;
      border-radius: 15px;
      margin-top: 2rem;
      border-left: 4px solid #95D5B2;
    }
  
    .service-guarantee h4 {
      color: #2D3748;
      margin-bottom: 0.5rem;
    }
  
    .service-guarantee p {
      margin: 0;
      color: #4A5568;
    }
  
    @keyframes fadeInPopup {
      from { opacity: 0; }
      to { opacity: 1; }
    }
  
    @keyframes slideUpPopup {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  
    @media (max-width: 768px) {
      .service-modal {
        margin: 1rem;
      }
  
      .service-modal-header h2 {
        font-size: 1.5rem;
      }
  
      .service-price-current {
        font-size: 2.5rem;
      }
  
      .service-modal-actions {
        flex-direction: column;
      }
  
      .btn-modal {
        min-width: 100%;
      }
  
      .service-plans {
        grid-template-columns: 1fr;
      }
    }


 
    /* Accesibilidad y UX */
    .nav-links a.active { 
      border-bottom: 2px solid currentColor; 
    }
    .faq-question { 
      cursor: pointer; 
    }

    /* ========================================
       MODAL DE SERVICIOS
       ======================================== */
    .service-modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.75);
      z-index: 9999;
      overflow-y: auto;
      padding: 2rem 1rem;
      animation: fadeInPopup 0.3s ease;
    }
  
    .service-modal-overlay.active {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .service-modal {
      background: white;
      max-width: 900px;
      width: 100%;
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      position: relative;
      animation: slideUpPopup 0.4s ease;
      overflow: hidden;
    }
  
    .service-modal-header {
      background: linear-gradient(135deg, #8B7AB8 0%, #B8A8D9 100%);
      color: white;
      padding: 2rem;
      position: relative;
    }
  
    .service-modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .service-modal-close:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: rotate(90deg);
    }
  
    .service-modal-header h2 {
      margin: 0 0 0.5rem 0;
      font-size: 2rem;
    }
  
    .service-modal-header .tipo {
      font-size: 1.1rem;
      opacity: 0.9;
      font-weight: 600;
    }
  
    .service-badge {
      display: inline-block;
      background: #F4D35E;
      color: #2D3748;
      padding: 0.4rem 1rem;
      border-radius: 20px;
      font-weight: 600;
      font-size: 0.9rem;
      margin-top: 0.5rem;
    }
  
    .service-modal-body {
      padding: 2rem;
    }
  
    .service-price-section {
      background: linear-gradient(135deg, #F8F9FA 0%, #E8EAF6 100%);
      padding: 2rem;
      border-radius: 15px;
      text-align: center;
      margin-bottom: 2rem;
    }
  
    .service-price-original {
      text-decoration: line-through;
      color: #999;
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
    }
  
    .service-price-current {
      font-size: 3rem;
      font-weight: bold;
      color: #8B7AB8;
      margin: 0.5rem 0;
    }
  
    .service-price-discount {
      background: #E63946;
      color: white;
      padding: 0.5rem 1.5rem;
      border-radius: 25px;
      font-size: 1.2rem;
      font-weight: 600;
      display: inline-block;
      margin-top: 0.5rem;
    }
  
    .service-description {
      margin-bottom: 2rem;
      line-height: 1.8;
      color: #2D3748;
      font-size: 1.05rem;
    }
  
    .benefit-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 1.5rem 0;
    }
  
    .benefit-tag {
      background: #E8EAF6;
      color: #8B7AB8;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
    }
  
    .service-features {
      margin-bottom: 2rem;
    }
  
    .service-features h3 {
      color: #8B7AB8;
      margin-bottom: 1rem;
      font-size: 1.3rem;
    }
  
    .service-features ul {
      list-style: none;
      padding: 0;
    }
  
    .service-features li {
      padding: 0.8rem 0;
      border-bottom: 1px solid #E2E8F0;
      position: relative;
      padding-left: 2rem;
      line-height: 1.6;
    }
  
    .service-features li:last-child {
      border-bottom: none;
    }
  
    .service-features li::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: #95D5B2;
      font-weight: bold;
      font-size: 1.2rem;
    }
  
    .service-plans {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }
  
    .plan-card {
      background: white;
      border: 2px solid #E2E8F0;
      border-radius: 15px;
      padding: 1.5rem;
      transition: all 0.3s;
    }
  
    .plan-card:hover {
      border-color: #8B7AB8;
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(139, 122, 184, 0.2);
    }
  
    .plan-card.featured {
      border-color: #8B7AB8;
      background: linear-gradient(135deg, #F8F9FA 0%, #E8EAF6 100%);
    }
  
    .plan-card h4 {
      color: #8B7AB8;
      margin-bottom: 0.5rem;
    }
  
    .plan-price {
      font-size: 1.8rem;
      font-weight: bold;
      color: #2D3748;
      margin: 0.5rem 0;
    }
  
    .plan-duration {
      color: #718096;
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }
  
    .service-modal-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }
  
    .btn-modal {
      flex: 1;
      min-width: 200px;
      padding: 1.2rem 2rem;
      border: none;
      border-radius: 30px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }
  
    .btn-modal-primary {
      background: #8B7AB8;
      color: white;
    }
  
    .btn-modal-primary:hover {
      background: #6B5B95;
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(139, 122, 184, 0.4);
    }
  
    .btn-modal-secondary {
      background: #F4D35E;
      color: #2D3748;
    }
  
    .btn-modal-secondary:hover {
      background: #E5C34E;
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(244, 211, 94, 0.4);
    }
  
    .service-guarantee {
      background: #E8F5E9;
      padding: 1.5rem;
      border-radius: 15px;
      margin-top: 2rem;
      border-left: 4px solid #95D5B2;
    }
  
    .service-guarantee h4 {
      color: #2D3748;
      margin-bottom: 0.5rem;
    }
  
    .service-guarantee p {
      margin: 0;
      color: #4A5568;
    }

    /* ========================================
       CARRUSEL DE CERTIFICACIONES
       ======================================== */
    .certificaciones-carousel {
      position: relative;
      overflow: hidden;
      padding: 0 3rem;
    }

    .certificaciones-track {
      display: flex;
      gap: 2rem;
      transition: transform 0.5s ease;
    }

    .certificacion-card {
      min-width: 320px;
      flex-shrink: 0;
      background: white;
      border-radius: 15px;
      padding: 2rem 2rem 8rem 2rem;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      position: relative;
      overflow: visible;
      transition: all 0.3s;
    }



    .certificacion-card .icono {
      font-size: 3rem;
      margin-bottom: 1rem;
      display: block;
    }

 

    .certificacion-card .institucion {
      color: #718096;
      font-size: 0.95rem;
      margin-bottom: 0.5rem;
    }

    .certificacion-card .ano {
      color: #95D5B2;
      font-weight: 600;
      font-size: 1.1rem;
    }

    .certificacion-card .imagen-certificacion {
      position: absolute;
      bottom: -20px;
      right: -10px;
      width: 180px;
      height: auto;
      opacity: 0.9;
      transition: all 0.3s;
      pointer-events: none;
    }

    .certificacion-card:hover .imagen-certificacion {
      transform: scale(1.05);
      opacity: 1;
    }

    .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: #8B7AB8;
      color: white;
      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      z-index: 10;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .carousel-btn:hover {
      background: #6B5B95;
      transform: translateY(-50%) scale(1.1);
    }

    .carousel-btn.prev {
      left: 0;
    }

    .carousel-btn.next {
      right: 0;
    }

    .carousel-dots {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 2rem;
    }

    .carousel-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #E2E8F0;
      border: none;
      cursor: pointer;
      transition: all 0.3s;
    }

    .carousel-dot.active {
      background: #8B7AB8;
      width: 30px;
      border-radius: 6px;
    }

    /* ========================================
       ANIMACIONES
       ======================================== */
    @keyframes fadeInPopup {
      from { opacity: 0; }
      to { opacity: 1; }
    }
  
    @keyframes slideUpPopup {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ========================================
       RESPONSIVE
       ======================================== */
    @media (max-width: 768px) {
      .service-modal {
        margin: 1rem;
      }
  
      .service-modal-header h2 {
        font-size: 1.5rem;
      }
  
      .service-price-current {
        font-size: 2.5rem;
      }
  
      .service-modal-actions {
        flex-direction: column;
      }
  
      .btn-modal {
        min-width: 100%;
      }
  
      .service-plans {
        grid-template-columns: 1fr;
      }

      .certificaciones-carousel {
        padding: 0 1rem;
      }

      .certificacion-card {
        min-width: 280px;
      }

      .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
      }

      .certificacion-card .imagen-certificacion {
        width: 140px;
        bottom: -15px;
        right: -5px;
      }
    }

    /* Estilos del Modal de Servicio (Mantenidos) */
    .service-modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.75);
      z-index: 9999;
      overflow-y: auto;
      padding: 2rem 1rem;
      animation: fadeInPopup 0.3s ease;
    }
  
    .service-modal-overlay.active {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .service-modal {
      background: white;
      max-width: 900px;
      width: 100%;
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      position: relative;
      animation: slideUpPopup 0.4s ease;
      overflow: hidden;
    }
  
    .service-modal-header {
      background: linear-gradient(135deg, #8B7AB8 0%, #B8A8D9 100%);
      color: white;
      padding: 2rem;
      position: relative;
    }
  
    .service-modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .service-modal-close:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: rotate(90deg);
    }
  
    .service-modal-header h2 {
      margin: 0 0 0.5rem 0;
      font-size: 2rem;
    }
  
    .service-modal-header .tipo {
      font-size: 1.1rem;
      opacity: 0.9;
      font-weight: 600;
    }
  
    .service-badge {
      display: inline-block;
      background: #F4D35E;
      color: #2D3748;
      padding: 0.4rem 1rem;
      border-radius: 20px;
      font-weight: 600;
      font-size: 0.9rem;
      margin-top: 0.5rem;
    }
  
    .service-modal-body {
      padding: 2rem;
    }
  
    .service-price-section {
      background: linear-gradient(135deg, #F8F9FA 0%, #E8EAF6 100%);
      padding: 2rem;
      border-radius: 15px;
      text-align: center;
      margin-bottom: 2rem;
    }
  
    .service-price-original {
      text-decoration: line-through;
      color: #999;
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
    }
  
    .service-price-current {
      font-size: 3rem;
      font-weight: bold;
      color: #8B7AB8;
      margin: 0.5rem 0;
    }
  
    .service-price-discount {
      background: #E63946;
      color: white;
      padding: 0.5rem 1.5rem;
      border-radius: 25px;
      font-size: 1.2rem;
      font-weight: 600;
      display: inline-block;
      margin-top: 0.5rem;
    }
  
    .service-description {
      margin-bottom: 2rem;
      line-height: 1.8;
      color: #2D3748;
      font-size: 1.05rem;
    }
  
    .benefit-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 1.5rem 0;
    }
  
    .benefit-tag {
      background: #E8EAF6;
      color: #8B7AB8;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
    }
  
    .service-features {
      margin-bottom: 2rem;
    }
  
    .service-features h3 {
      color: #8B7AB8;
      margin-bottom: 1rem;
      font-size: 1.3rem;
    }
  
    .service-features ul {
      list-style: none;
      padding: 0;
    }
  
    .service-features li {
      padding: 0.8rem 0;
      border-bottom: 1px solid #E2E8F0;
      position: relative;
      padding-left: 2rem;
      line-height: 1.6;
    }
  
    .service-features li:last-child {
      border-bottom: none;
    }
  
    .service-features li::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: #95D5B2;
      font-weight: bold;
      font-size: 1.2rem;
    }
  
    .service-plans {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }
  
    .plan-card {
      background: white;
      border: 2px solid #E2E8F0;
      border-radius: 15px;
      padding: 1.5rem;
      transition: all 0.3s;
    }
  
    .plan-card:hover {
      border-color: #8B7AB8;
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(139, 122, 184, 0.2);
    }
  
    .plan-card.featured {
      border-color: #8B7AB8;
      background: linear-gradient(135deg, #F8F9FA 0%, #E8EAF6 100%);
    }
  
    .plan-card h4 {
      color: #8B7AB8;
      margin-bottom: 0.5rem;
    }
  
    .plan-price {
      font-size: 1.8rem;
      font-weight: bold;
      color: #2D3748;
      margin: 0.5rem 0;
    }
  
    .plan-duration {
      color: #718096;
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }
  
    .service-modal-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }
  
    .btn-modal {
      flex: 1;
      min-width: 200px;
      padding: 1.2rem 2rem;
      border: none;
      border-radius: 30px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }
  
    .btn-modal-primary {
      background: #8B7AB8;
      color: white;
    }
  
    .btn-modal-primary:hover {
      background: #6B5B95;
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(139, 122, 184, 0.4);
    }
  
    .btn-modal-secondary {
      background: #F4D35E;
      color: #2D3748;
    }
  
    .btn-modal-secondary:hover {
      background: #E5C34E;
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(244, 211, 94, 0.4);
    }
  
    .service-guarantee {
      background: #E8F5E9;
      padding: 1.5rem;
      border-radius: 15px;
      margin-top: 2rem;
      border-left: 4px solid #95D5B2;
    }
  
    .service-guarantee h4 {
      color: #2D3748;
      margin-bottom: 0.5rem;
    }
  
    .service-guarantee p {
      margin: 0;
      color: #4A5568;
    }
  
    @keyframes fadeInPopup {
      from { opacity: 0; }
      to { opacity: 1; }
    }
  
    @keyframes slideUpPopup {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  
    @media (max-width: 768px) {
      .service-modal {
        margin: 1rem;
      }
  
      .service-modal-header h2 {
        font-size: 1.5rem;
      }
  
      .service-price-current {
        font-size: 2.5rem;
      }
  
      .service-modal-actions {
        flex-direction: column;
      }
  
      .btn-modal {
        min-width: 100%;
      }
  
      .service-plans {
        grid-template-columns: 1fr;
      }
    }
    
    /* CARRUSEL CSS */
    .certificaciones {
        position: relative; /* Para posicionar botones */
        padding: 4rem 1rem;
        background-color: var(--gris-claro, #F8F9FA); 
    }

    .certificaciones-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .carrusel-container {
      overflow: hidden; /* Oculta las imágenes que no caben */
      position: relative;
    }

    .carrusel-track {
      display: flex;
      transition: transform 0.5s ease-in-out;
      padding: 1rem 0; /* Espacio para la sombra */
    }

    .carrusel-item {
      flex: 0 0 auto; /* No crece, no encoge, tamaño automático */
      width: calc(100% / 3.2); /* Muestra 3 imágenes y un poco de la 4ta */
      margin-right: 1.5rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      border-radius: 15px;
      overflow: hidden;
      background: var(--blanco); /* Fondo de la tarjeta de certificación */
      display: flex;
      flex-direction: column;
    }
    
    .certificacion-card {
      padding: 1.5rem;
      flex-grow: 1;
    }

    .cert-image-container {
      height: 200px; /* Altura del contenedor de imagen */
      width: 100%;
      overflow: hidden;
      margin-bottom: 1rem;
    }
    
    .cert-image {
      width: 100%;
      height: 100%;
      object-fit: cover; /* Recorta la imagen para cubrir el área sin distorsionar */
      display: block;
      transition: transform 0.3s;
    }
    .certificacion-card:hover .cert-image {
        transform: scale(1.05);
    }

    .certificacion-card h3 {
        color: var(--violeta);
        font-size: 1.25rem;
        margin-top: 0;
    }
    .certificacion-card .institucion, .certificacion-card .ano {
        color: var(--texto);
        opacity: 0.8;
        font-size: 0.9rem;
    }


    /* Controles de Navegación */
    .carrusel-nav-button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: var(--violeta, #8B7AB8);
      color: white;
      border: none;
      padding: 1rem;
      cursor: pointer;
      z-index: 10;
      border-radius: 50%;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      transition: background 0.3s, opacity 0.3s;
    }

    .carrusel-nav-button:hover {
      background: var(--violeta-claro, #B8A8D9);
    }

    .carrusel-nav-button.prev { left: 0.5rem; }
    .carrusel-nav-button.next { right: 0.5rem; }

    /* Responsividad */
    @media (max-width: 1024px) {
      .carrusel-item {
        width: calc(100% / 2.2); /* Muestra 2 imágenes y un poco de la 3ra */
      }
    }

    @media (max-width: 768px) {
      .carrusel-item {
        width: 90%; /* Muestra 1 imagen completa */
        margin-right: 1rem;
      }
      .carrusel-nav-button {
        padding: 0.8rem;
      }
      /* Ajuste fino de la posición de los botones del carrusel en móvil */
      #certificaciones .carrusel-nav-button.prev { left: 0; }
      #certificaciones .carrusel-nav-button.next { right: 0; }
    }

    .faq-answer {
    /* Inicialmente la altura es 0 y oculta el contenido */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding-top: 0;
    padding-bottom: 0;
}

/* Cuando el contenedor tiene la clase 'active', se expande */
.faq-item.active .faq-answer {
    max-height: 500px; /* Un valor lo suficientemente grande */
    padding-top: 1rem; /* Asegura el padding interno al abrir */
    padding-bottom: 1rem;
}

/* Opcional: Estilo para la pregunta activa */
.faq-item.active .faq-question {
    font-weight: bold;
    /* color: var(--violeta);  Usa tu variable de color de acento */
}


 