/* ==================== VARIABLES Y ESTILOS GENERALES ==================== */
:root { --color-principal: #4E8B8C; --color-secundario: #A08FB0; --color-acento: #E2B7C8; --color-texto: #333; --color-fondo: #fdfdfd; --font-titulos: 'Poppins', sans-serif; --font-cuerpo: 'Lato', sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-cuerpo); color: var(--color-texto); background-color: var(--color-fondo); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section__title { font-family: var(--font-titulos); font-size: 2.5rem; color: var(--color-principal); text-align: center; margin-bottom: 50px; }
.section__description { text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; margin-top: -30px; margin-bottom: 50px; font-size: 1.1rem; line-height: 1.7; color: #555; }

/* ==================== HEADER Y NAVEGACIÓN (FIJO) ==================== */
.header { width: 100%; position: fixed; top: 0; left: 0; z-index: 100; background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav { height: 70px; display: flex; justify-content: space-between; align-items: center; }
.nav__logo img { height: 45px; display: block; }
.nav__list { list-style: none; display: flex; gap: 30px; }
.nav__link { text-decoration: none; font-family: var(--font-titulos); color: var(--color-principal); font-weight: 500; transition: color 0.3s; }
.nav__link:hover { color: var(--color-acento); }
.nav__toggle { display: none; cursor: pointer; }

/* ==================== HERO SECTION (OPTIMIZADO CON .webp) ==================== */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/imagenes/sala-terapia.webp') no-repeat center center/cover; color: white; padding: 40px 20px; }
.hero__content h1 { font-family: var(--font-titulos); font-size: 3.5rem; margin-bottom: 20px; text-shadow: 2px 2px 8px rgba(0,0,0,0.6); }
.hero__content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }
.button { display: inline-block; background-color: var(--color-principal); color: white; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: transform 0.3s, background-color 0.3s; }
.button:hover { background-color: #3d7172; transform: translateY(-3px); }


/* ================================================= */
/* Estilos para la nueva sección de Bienvenida       */
/* ================================================= */
.welcome-text-container { max-width: 800px; margin: 0 auto; text-align: justify; line-height: 1.8; }
.welcome-text-container p { margin-bottom: 1.5em; }
.welcome-text-container p:last-child { margin-bottom: 0; }
.more-text { max-height: 0; overflow: hidden; transition: max-height 0.7s ease-in-out; }
.more-text.show { max-height: 1000px; }
.read-more-btn { background: none; border: 2px solid var(--color-principal); color: var(--color-principal); padding: 10px 25px; border-radius: 50px; cursor: pointer; font-weight: bold; font-family: var(--font-titulos); margin-top: 20px; transition: all 0.3s; }
.read-more-btn:hover { background-color: var(--color-principal); color: white; }
.read-more-btn::after { content: ' ▼'; display: inline-block; transition: transform 0.3s; }
.read-more-btn.active::after { transform: rotate(180deg); }


/* ==================== SERVICIOS ==================== */
#servicios { background-color: #f7f9fa; }
.services__container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 3fr)); gap: 30px; margin: 0px 10px; }
.service__card { background-color: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; border-top: 5px solid var(--color-secundario); transition: transform 0.3s, box-shadow 0.3s; }
.service__card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service__card h3 { font-family: var(--font-titulos); color: var(--color-principal); margin-bottom: 15px; margin-top: 20px; }
.service__icon { margin: 0 auto; width: 80px; height: 80px; display: flex; justify-content: center; align-items: center; }
.icon-brain { width: 60px; height: 60px; border: 4px solid var(--color-secundario); border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; position: relative; }
.icon-brain::before { content: ''; position: absolute; width: 4px; height: 100%; background-color: var(--color-secundario); left: 50%; transform: translateX(-50%) rotate(10deg); border-radius: 2px; }
.icon-speech { width: 60px; height: 50px; background-color: var(--color-acento); border-radius: 10px; position: relative; }
.icon-speech::after { content: ''; position: absolute; bottom: -10px; left: 15px; width: 0; height: 0; border: 10px solid transparent; border-top-color: var(--color-acento); }
.icon-book { width: 60px; height: 45px; background-color: var(--color-principal); border-radius: 4px; position: relative; }
.icon-book::before { content: ''; position: absolute; width: 100%; height: 100%; background-color: var(--color-principal); border-radius: 4px; transform: translateX(-5px) skewY(10deg); z-index: -1; }

/* ================================================= */
/* Estilos para los nuevos iconos de Servicios       */
/* (Añadidos para no modificar el style.css original) */
/* ================================================= */
.section__conclusion, .service__email-contact { text-align: center; max-width: 800px; margin: 40px auto 0; }
.service__email-contact a { color: var(--color-principal); font-weight: bold; text-decoration: none; }

/* Icono 1: Psicología Infanto-Juvenil (dos figuras) */
.icon-infanto-juvenil { position: relative; width: 70px; height: 40px; }
.icon-infanto-juvenil::before, .icon-infanto-juvenil::after { content: ''; position: absolute; background-color: var(--color-secundario); border-radius: 5px 5px 0 0; }
.icon-infanto-juvenil::before { width: 25px; height: 35px; bottom: 0; left: 10px; }
.icon-infanto-juvenil::after { width: 18px; height: 25px; bottom: 0; right: 20px; background-color: var(--color-acento); }

/* Icono 2: Psicología de Adultos (una figura) */
.icon-adultos { width: 30px; height: 15px; background: var(--color-secundario); border-radius: 50% 50% 0 0; position: relative; }
.icon-adultos::after { content: ''; position: absolute; width: 30px; height: 30px; background-color: var(--color-secundario); top: 15px; left: 0; border-radius: 0 0 10px 10px; }

/* Icono 3: Logopedia (burbuja de diálogo) */
.icon-logopedia { width: 50px; height: 40px; background-color: var(--color-acento); border-radius: 10px; position: relative; }
.icon-logopedia::after { content: ''; position: absolute; bottom: -8px; left: 10px; border: 8px solid transparent; border-top-color: var(--color-acento); }

/* Icono 4: Pedagogía (libro abierto) */
.icon-pedagogia { width: 50px; height: 35px; background-color: var(--color-principal); border-radius: 4px; position: relative; border-right: 3px solid rgba(0,0,0,0.1); }
.icon-pedagogia::before { content: ''; position: absolute; width: 100%; height: 100%; background-color: var(--color-principal); border-radius: 4px; transform: translateX(-5px) skewY(10deg); z-index: -1; }

/* Icono 5: Clases de Apoyo (página con un plus) */
.icon-apoyo { width: 40px; height: 50px; background: white; border: 3px solid var(--color-secundario); border-radius: 4px; position: relative; }
.icon-apoyo::before, .icon-apoyo::after { content: ''; position: absolute; background-color: var(--color-principal); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.icon-apoyo::before { width: 20px; height: 4px; }
.icon-apoyo::after { width: 4px; height: 20px; }

/* Icono 6: Evaluaciones (checklist) */
.icon-evaluaciones { width: 45px; height: 50px; background: white; border: 3px solid var(--color-acento); border-radius: 4px; position: relative; background-image: linear-gradient(var(--color-texto) 1px, transparent 1px); background-size: 100% 15px; }
.icon-evaluaciones::before { content: '✓'; color: var(--color-principal); font-size: 24px; font-weight: bold; position: absolute; top: 1px; left: -12px; }

/* Icono 7: Formación/Talleres (grupo de personas) */
.icon-talleres::before, .icon-talleres::after { content: ''; position: absolute; width: 20px; height: 10px; background-color: var(--color-acento); border-radius: 50% 50% 0 0; bottom: 25px; }
.icon-talleres::before { left: 5px; }
.icon-talleres::after { right: 5px; }
.icon-talleres { width: 25px; height: 15px; background-color: var(--color-principal); border-radius: 50% 50% 0 0; position: relative; top: 10px; }

/* Icono 8: Terapias Grupales (círculo de conexión) */
.icon-grupales { width: 45px; height: 45px; border: 4px dotted var(--color-secundario); border-radius: 50%; }
.icon-grupales::before { content: ''; width: 15px; height: 15px; background-color: var(--color-acento); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* Icono 9: Terapia Online (portátil) */
.icon-online { width: 55px; height: 35px; background-color: var(--color-texto); border-radius: 5px 5px 0 0; position: relative; }
.icon-online::after { content: ''; position: absolute; width: 65px; height: 5px; background-color: #ccc; bottom: -5px; left: -5px; border-radius: 0 0 5px 5px; }


/* Estilos para la sección de Equipo (Versión Interactiva) */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.team-card { text-align: center; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; padding: 20px; border-radius: 15px; }
.team-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.team-card__photo { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 5px solid white; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-out; }
.team-card:hover .team-card__photo img { transform: scale(1.1); } /* Efecto hover en la foto */
.team-card h3 { color: var(--color-principal); font-family: var(--font-titulos); }
.team-card h4 { color: #555; font-weight: normal; margin-top: -10px; margin-bottom: 15px; }

/* Estilos para el Modal del Equipo (Actualizados) */
.team-modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.team-modal-content { position: relative; background-color: white; margin: 5% auto; padding: 30px; border-radius: 10px; max-width: 600px; width: 90%; max-height: 85vh; display: flex; flex-direction: column; }
.team-modal-content img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: -80px auto 15px; border: 5px solid white; box-shadow: 0 0 20px rgba(0,0,0,0.2); }
.team-modal-content h3 { text-align: center; color: var(--color-principal); }
.team-modal-content h4 { text-align: center; color: #555; font-weight: normal; margin-top: -10px; margin-bottom: 20px; }
.team-modal-scroll { overflow-y: auto; line-height: 1.8; text-align: justify; padding-right: 15px; flex-grow: 1; }
.team-modal-close { position: absolute; top: 10px; right: 20px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.team-modal-contact { display: flex; justify-content: center; gap: 15px; margin-top: 25px; border-top: 1px solid #eee; padding-top: 20px; }
.modal-contact-btn { padding: 10px 20px; border-radius: 50px; text-decoration: none; color: white; font-weight: bold; transition: opacity 0.3s; }
.whatsapp-btn { background-color: #25D366; }
.phone-btn { background-color: var(--color-secundario); }
.modal-contact-btn:hover { opacity: 0.85; }

/* ==================== PODCAST ==================== */
#podcast { background-color: #f7f9fa; }
.podcast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; gap: 30px; }


/* ==================== GALERÍA ==================== */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery__item { overflow: hidden; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
/* La etiqueta <picture> funciona con la <img> interior, no necesita estilos adicionales */
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease-out; }
.gallery__item:hover img { transform: scale(1.1); }

/* ==================== CONTACTO ==================== */
#contacto { background-color: #f7f9fa; }
.contact__container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; margin: 0px 10px; }
.contact__info { margin: 10px; text-align: center; line-height: 1.8; }
.contact__info h3 { font-family: var(--font-titulos); color: var(--color-principal); margin-bottom: 10px; }
.contact__info .button { margin-top: 20px; }
.contact__map iframe { border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }

/* ==================== BOTÓN WHATSAPP ==================== */
.whatsapp-flotante { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25D366; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 100; transition: transform 0.3s; }
.whatsapp-flotante:hover { transform: scale(1.1); }
.whatsapp-icon { width: 30px; height: 30px; background-color: white; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.894 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01s-.521.074-.792.372c-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.626.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"/></svg>') center/contain no-repeat; }

/* ==================== FOOTER ==================== */
.footer { background-color: #333; color: #eee; text-align: center; padding: 20px 0; }


/* ==================== CUESTIONARIOS SHOWCASE ==================== */
#cuestionarios { background-color: #f7f9fa; }
.quiz-showcase-container { max-width: 700px; margin: 0 auto; }
.quiz-featured-card { background-color: white; border: 2px solid var(--color-secundario); border-radius: 15px; padding: 40px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.quiz-featured-icon { font-size: 3rem; margin-bottom: 15px; }
.quiz-featured-card h3 { font-family: var(--font-titulos); color: var(--color-principal); font-size: 1.8rem; margin-bottom: 15px; }
.quiz-featured-card p { color: #666; max-width: 500px; margin: 0 auto 30px; }
.quiz-featured-button { display: inline-block; background-color: var(--color-secundario); color: white; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: transform 0.3s, background-color 0.3s; }
.quiz-featured-button:hover { background-color: #8a7999; transform: translateY(-3px); }
.all-quizzes-link { text-align: center; margin-top: 30px; }
.all-quizzes-link a { color: var(--color-principal); text-decoration: none; font-weight: bold; border-bottom: 2px solid transparent; transition: border-bottom-color 0.3s; }
.all-quizzes-link a:hover { border-bottom-color: var(--color-principal); }


/* ================================================= */
/* Estilos para la nueva sección de Eventos          */
/* ================================================= */

.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 40px; }
.event-card { background-color: #fff; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.08); overflow: hidden; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.event-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.event-card__image { width: 100%; padding-top: 56.25%; position: relative; background-color: #eee; }
.event-card__image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.event-card__content { padding: 25px; }
.event-card__date { display: block; font-size: 0.9em; font-weight: bold; color: var(--color-secundario); margin-bottom: 10px; }
.event-card__content h3 { font-family: var(--font-titulos); color: var(--color-principal); margin-top: 0; margin-bottom: 10px; font-size: 1.4rem; }
.event-card__content p { color: #666; line-height: 1.6; }
.all-events-link { text-align: center; margin-top: 40px; }

/* Estilos para el Modal de Eventos */
.event-modal { display: none; position: fixed; z-index: 1002; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.event-modal-content { position: relative; background-color: white; padding: 0; border-radius: 15px; max-width: 650px; width: 90%; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.event-modal-content img { width: 100%; height: 250px; object-fit: cover; }
.event-modal-text-content { padding: 30px; overflow-y: auto; flex-grow: 1; }
.event-modal-text-content h3 { font-family: var(--font-titulos); color: var(--color-principal); font-size: 2rem; margin-top: 0; margin-bottom: 5px; }
.event-modal-date { font-weight: bold; color: var(--color-secundario); display: block; margin-bottom: 25px; font-size: 1.1rem; }
.event-modal-scroll p { line-height: 1.8; text-align: justify; margin-bottom: 1em; }
.event-modal-scroll p:last-child { margin-bottom: 0; }
.event-modal-close { position: absolute; top: 15px; right: 20px; color: white; text-shadow: 0 1px 5px rgba(0,0,0,0.5); font-size: 35px; font-weight: bold; cursor: pointer; z-index: 10; }
.event-modal-share { border-top: 1px solid #eee; padding: 20px 30px; background-color: #f8f9fa; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.event-modal-share h4 { margin: 0; color: #333; }
.event-modal-share a, .event-modal-share button { padding: 8px 15px; border-radius: 50px; text-decoration: none; color: white; font-weight: bold; transition: opacity 0.3s; font-size: 0.9em; border: none; cursor: pointer; }
.event-modal-share a.whatsapp { background-color: #25D366; }
.event-modal-share a.facebook { background-color: #1877F2; }
.event-modal-share button.copy-link { background-color: var(--color-secundario); }
.event-modal-share a:hover, .event-modal-share button:hover { opacity: 0.85; }


/* ================================================= */
/* Estilos para la nueva sección de Llamada a la Acción */
/* ================================================= */
.cta-section { padding: 80px 0; background-color: var(--color-principal); color: white; }
.cta-container { text-align: center; }
.cta-content h2 { font-family: var(--font-titulos); font-size: 2.8rem; margin-bottom: 20px; text-shadow: 1px 1px 5px rgba(0,0,0,0.2); }
.cta-content p { max-width: 700px; margin: 0 auto 40px; font-size: 1.1rem; opacity: 0.9; }
.cta-buttons { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; font-family: var(--font-titulos); transition: transform 0.3s, box-shadow 0.3s; }
.cta-btn:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.cta-btn.whatsapp { background-color: #25D366; color: white; }
.cta-btn.telefono { background-color: var(--color-secundario); color: white; }
.cta-btn.email { background-color: #f0f0f0; color: #333; }
.cta-icon-wrapper { width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; }

/* Iconos CSS para los botones CTA */
.icon-cta-whatsapp { width: 24px; height: 24px; background-color: white; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.894 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01s-.521.074-.792.372c-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.626.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"/></svg>') center/contain no-repeat; }
.icon-cta-phone { width: 14px; height: 14px; border: 2px solid white; border-radius: 50%; position: relative; transform: rotate(-45deg); }
.icon-cta-phone::before { content: ''; position: absolute; width: 2px; height: 10px; background-color: white; top: 1px; left: 5px; transform: rotate(45deg); }
.icon-cta-email { width: 20px; height: 16px; border: 2px solid #333; border-radius: 2px; position: relative; }
.icon-cta-email::before { content: ''; position: absolute; top: -2px; left: 0px; border: 10px solid transparent; border-bottom-color: #333; transform: rotate(-45deg); }
.icon-cta-email::after { content: ''; position: absolute; top: -2px; right: 0px; border: 10px solid transparent; border-bottom-color: #333; transform: rotate(45deg); }



/* ==================== Estilos Adicionales para Secciones Dinámicas ==================== */

/* --- Descripción de Sección --- */
.section__description { text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; margin-top: -30px; margin-bottom: 50px; font-size: 1.1rem; line-height: 1.7; color: #555; }

/* --- Bienvenida --- */
.welcome-text-container { max-width: 800px; margin: 0 auto; text-align: justify; line-height: 1.8; }
.welcome-text-container p { margin-bottom: 1.5em; }
.welcome-text-container p:last-child { margin-bottom: 0; }
.more-text { max-height: 0; overflow: hidden; transition: max-height 0.7s ease-in-out; }
.more-text.show { max-height: 1000px; }
.read-more-btn { background: none; border: 2px solid var(--color-principal); color: var(--color-principal); padding: 10px 25px; border-radius: 50px; cursor: pointer; font-weight: bold; font-family: var(--font-titulos); margin-top: 20px; transition: all 0.3s; }
.read-more-btn:hover { background-color: var(--color-principal); color: white; }
.read-more-btn::after { content: ' ▼'; display: inline-block; transition: transform 0.3s; }
.read-more-btn.active::after { transform: rotate(180deg); }

/* --- Equipo --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.team-card { text-align: center; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; padding: 20px; border-radius: 15px; }
.team-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.team-card__photo { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 5px solid white; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-out; }
.team-card:hover .team-card__photo img { transform: scale(1.1); }
.team-card h3 { color: var(--color-principal); font-family: var(--font-titulos); }
.team-card h4 { color: #555; font-weight: normal; margin-top: -10px; margin-bottom: 15px; }
.team-modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.team-modal-content { position: relative; background-color: white; margin: 5% auto; padding: 30px; border-radius: 10px; max-width: 600px; width: 90%; max-height: 85vh; display: flex; flex-direction: column; }
.team-modal-content img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: -80px auto 15px; border: 5px solid white; box-shadow: 0 0 20px rgba(0,0,0,0.2); }
.team-modal-content h3 { text-align: center; color: var(--color-principal); }
.team-modal-content h4 { text-align: center; color: #555; font-weight: normal; margin-top: -10px; margin-bottom: 20px; }
.team-modal-scroll { overflow-y: auto; line-height: 1.8; text-align: justify; padding-right: 15px; flex-grow: 1; }
.team-modal-close { position: absolute; top: 10px; right: 20px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.team-modal-contact { display: flex; justify-content: center; gap: 15px; margin-top: 25px; border-top: 1px solid #eee; padding-top: 20px; }
.modal-contact-btn { padding: 10px 20px; border-radius: 50px; text-decoration: none; color: white; font-weight: bold; transition: opacity 0.3s; }
.whatsapp-btn { background-color: #25D366; }
.phone-btn { background-color: var(--color-secundario); }
.modal-contact-btn:hover { opacity: 0.85; }

/* --- Podcast --- */
.podcast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.podcast-card { background-color: #fff; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.07); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.podcast-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.podcast-card__image { position: relative; width: 100%; padding-top: 56.25%; }
.podcast-card__image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.podcast-card__play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background-color: rgba(255, 255, 255, 0.8); border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: transform 0.3s; }
.podcast-card__play-icon::after { content: ''; display: block; width: 0; height: 0; border-top: 15px solid transparent; border-bottom: 15px solid transparent; border-left: 25px solid var(--color-principal); margin-left: 5px; }
.podcast-card:hover .podcast-card__play-icon { transform: translate(-50%, -50%) scale(1.1); }
.podcast-card__content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.podcast-card__content h3 { font-family: var(--font-titulos); color: var(--color-principal); margin-top: 0; }
.podcast-card__content p { color: #666; margin-bottom: 20px; flex-grow: 1; }
.podcast-button { cursor: pointer; display: inline-block; background-color: var(--color-principal); color: white; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: bold; border: none; text-align: center; transition: background-color 0.3s; }
.podcast-button:hover { background-color: #3d7172; }
.podcast-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); }
.podcast-modal-content { background-color: #fefefe; margin: 10% auto; padding: 20px; border-radius: 10px; position: relative; max-width: 600px; width: 90%; }
.podcast-modal-close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
#podcast-player-container iframe { width: 100%; border-radius: 12px; min-height: 152px; }

/* --- Eventos --- */
#eventos { background-color: #f7f9fa; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 40px; }
.event-card { background-color: #fff; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.08); overflow: hidden; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.event-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.event-card__image { width: 100%; padding-top: 56.25%; position: relative; background-color: #eee; }
.event-card__image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.event-card__content { padding: 25px; }
.event-card__date { display: block; font-size: 0.9em; font-weight: bold; color: var(--color-secundario); margin-bottom: 10px; }
.event-card__content h3 { font-family: var(--font-titulos); color: var(--color-principal); margin-top: 0; margin-bottom: 10px; font-size: 1.4rem; }
.event-card__content p { color: #666; line-height: 1.6; }
.all-events-link { text-align: center; margin-top: 40px; }
.event-modal { display: none; position: fixed; z-index: 1002; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.event-modal-content { position: relative; background-color: white; padding: 0; border-radius: 15px; max-width: 650px; width: 90%; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.event-modal-content img { width: 100%; height: 250px; object-fit: cover; }
.event-modal-text-content { padding: 30px; overflow-y: auto; flex-grow: 1; }
.event-modal-text-content h3 { font-family: var(--font-titulos); color: var(--color-principal); font-size: 2rem; margin-top: 0; margin-bottom: 5px; }
.event-modal-date { font-weight: bold; color: var(--color-secundario); display: block; margin-bottom: 25px; font-size: 1.1rem; }
.event-modal-scroll p { line-height: 1.8; text-align: justify; margin-bottom: 1em; }
.event-modal-scroll p:last-child { margin-bottom: 0; }
.event-modal-close { position: absolute; top: 15px; right: 20px; color: white; text-shadow: 0 1px 5px rgba(0,0,0,0.5); font-size: 35px; font-weight: bold; cursor: pointer; z-index: 10; }
.event-modal-share { border-top: 1px solid #eee; padding: 20px 30px; background-color: #f8f9fa; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.event-modal-share h4 { margin: 0; color: #333; }
.event-modal-share a, .event-modal-share button { padding: 8px 15px; border-radius: 50px; text-decoration: none; color: white; font-weight: bold; transition: opacity 0.3s; font-size: 0.9em; border: none; cursor: pointer; }
.event-modal-share a.whatsapp { background-color: #25D366; }
.event-modal-share a.facebook { background-color: #1877F2; }
.event-modal-share button.copy-link { background-color: var(--color-secundario); }
.event-modal-share a:hover, .event-modal-share button:hover { opacity: 0.85; }

/* --- Cuestionarios Showcase --- */
#cuestionarios { background-color: #f7f9fa; }
.quiz-showcase-container { max-width: 700px; margin: 0 auto; }
.quiz-featured-card { background-color: white; border: 2px solid var(--color-secundario); border-radius: 15px; padding: 40px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.quiz-featured-icon { font-size: 3rem; margin-bottom: 15px; }
.quiz-featured-card h3 { font-family: var(--font-titulos); color: var(--color-principal); font-size: 1.8rem; margin-bottom: 15px; }
.quiz-featured-card p { color: #666; max-width: 500px; margin: 0 auto 30px; }
.quiz-featured-button { display: inline-block; background-color: var(--color-secundario); color: white; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: transform 0.3s, background-color 0.3s; }
.quiz-featured-button:hover { background-color: #8a7999; transform: translateY(-3px); }
.all-quizzes-link { text-align: center; margin-top: 30px; }
.all-quizzes-link a { color: var(--color-principal); text-decoration: none; font-weight: bold; border-bottom: 2px solid transparent; transition: border-bottom-color 0.3s; }
.all-quizzes-link a:hover { border-bottom-color: var(--color-principal); }

/* --- Llamada a la Acción (CTA) --- */
.cta-section { padding: 80px 0; background-color: var(--color-principal); color: white; }
.cta-container { text-align: center; }
.cta-content h2 { font-family: var(--font-titulos); font-size: 2.8rem; margin-bottom: 20px; text-shadow: 1px 1px 5px rgba(0,0,0,0.2); }
.cta-content p { max-width: 700px; margin: 0 auto 40px; font-size: 1.1rem; opacity: 0.9; }
.cta-buttons { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; font-family: var(--font-titulos); transition: transform 0.3s, box-shadow 0.3s; }
.cta-btn:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.cta-btn.whatsapp { background-color: #25D366; color: white; }
.cta-btn.telefono { background-color: var(--color-secundario); color: white; }
.cta-btn.email { background-color: #f0f0f0; color: #333; }
.cta-icon-wrapper { width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; }
.icon-cta-whatsapp { width: 24px; height: 24px; background-color: white; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.894 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01s-.521.074-.792.372c-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.626.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"/></svg>') center/contain no-repeat; }
.icon-cta-phone { width: 14px; height: 14px; border: 2px solid white; border-radius: 50%; position: relative; transform: rotate(-45deg); }
.icon-cta-phone::before { content: ''; position: absolute; width: 2px; height: 10px; background-color: white; top: 1px; left: 5px; transform: rotate(45deg); }
.icon-cta-email { width: 20px; height: 16px; border: 2px solid #333; border-radius: 2px; position: relative; }
.icon-cta-email::before { content: ''; position: absolute; top: -2px; left: 0px; border: 10px solid transparent; border-bottom-color: #333; transform: rotate(-45deg); }
.icon-cta-email::after { content: ''; position: absolute; top: -2px; right: 0px; border: 10px solid transparent; border-bottom-color: #333; transform: rotate(45deg); }

/* --- Iconos de Servicios --- */
.icon-infanto-juvenil { position: relative; width: 70px; height: 40px; }
.icon-infanto-juvenil::before, .icon-infanto-juvenil::after { content: ''; position: absolute; background-color: var(--color-secundario); border-radius: 5px 5px 0 0; }
.icon-infanto-juvenil::before { width: 25px; height: 35px; bottom: 0; left: 10px; }
.icon-infanto-juvenil::after { width: 18px; height: 25px; bottom: 0; right: 20px; background-color: var(--color-acento); }
.icon-adultos { width: 30px; height: 15px; background: var(--color-secundario); border-radius: 50% 50% 0 0; position: relative; }
.icon-adultos::after { content: ''; position: absolute; width: 30px; height: 30px; background-color: var(--color-secundario); top: 15px; left: 0; border-radius: 0 0 10px 10px; }
.icon-logopedia { width: 50px; height: 40px; background-color: var(--color-acento); border-radius: 10px; position: relative; }
.icon-logopedia::after { content: ''; position: absolute; bottom: -8px; left: 10px; border: 8px solid transparent; border-top-color: var(--color-acento); }
.icon-pedagogia { width: 50px; height: 35px; background-color: var(--color-principal); border-radius: 4px; position: relative; border-right: 3px solid rgba(0,0,0,0.1); }
.icon-pedagogia::before { content: ''; position: absolute; width: 100%; height: 100%; background-color: var(--color-principal); border-radius: 4px; transform: translateX(-5px) skewY(10deg); z-index: -1; }
.icon-apoyo { width: 40px; height: 50px; background: white; border: 3px solid var(--color-secundario); border-radius: 4px; position: relative; }
.icon-apoyo::before, .icon-apoyo::after { content: ''; position: absolute; background-color: var(--color-principal); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.icon-apoyo::before { width: 20px; height: 4px; }
.icon-apoyo::after { width: 4px; height: 20px; }
.icon-evaluaciones { width: 45px; height: 50px; background: white; border: 3px solid var(--color-acento); border-radius: 4px; position: relative; background-image: linear-gradient(var(--color-texto) 1px, transparent 1px); background-size: 100% 15px; }
.icon-evaluaciones::before { content: '✓'; color: var(--color-principal); font-size: 24px; font-weight: bold; position: absolute; top: 1px; left: -12px; }
.icon-talleres::before, .icon-talleres::after { content: ''; position: absolute; width: 20px; height: 10px; background-color: var(--color-acento); border-radius: 50% 50% 0 0; bottom: 25px; }
.icon-talleres::before { left: 5px; }
.icon-talleres::after { right: 5px; }
.icon-talleres { width: 25px; height: 15px; background-color: var(--color-principal); border-radius: 50% 50% 0 0; position: relative; top: 10px; }
.icon-grupales { width: 45px; height: 45px; border: 4px dotted var(--color-secundario); border-radius: 50%; }
.icon-grupales::before { content: ''; width: 15px; height: 15px; background-color: var(--color-acento); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.icon-online { width: 55px; height: 35px; background-color: var(--color-texto); border-radius: 5px 5px 0 0; position: relative; }
.icon-online::after { content: ''; position: absolute; width: 65px; height: 5px; background-color: #ccc; bottom: -5px; left: -5px; border-radius: 0 0 5px 5px; }


/* ==================== RESPONSIVE (MEDIA QUERIES) ==================== */
@media (max-width: 920px) {
	.nav__menu { position: fixed; top: 70px; right: -100%; width: 100%; height: 100vh; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); transition: right 0.4s; text-align: center; }
    .nav__list { flex-direction: column; padding-top: 50px; gap: 40px; }
    .nav__link { font-size: 1.5rem; }
    .nav__toggle { display: flex; flex-direction: column; gap: 5px; width: 30px; height: 25px; }
    .nav__toggle span { display: block; width: 100%; height: 3px; background-color: var(--color-principal); border-radius: 3px; transition: all 0.3s; }
    .show-menu { right: 0; }
}


@media screen and (max-width: 768px) {
    .nav.active .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav.active .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav.active .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hero__content h1 { font-size: 2.0rem; }
	.section__title { font-size: 2.0rem; }
    .contact__container { grid-template-columns: 1fr; }
	.contact__info { margin: 10px; text-align: center; }
    .gallery__grid { grid-template-columns: repeat(auto-fit, minmax(145px, 2fr)); }
}


/* ==================== Funcionalidad "Ver más" en Servicios (Móvil) ==================== */
.load-more-btn { display: none; }
@media (max-width: 768px) {
.services__container .service__card:nth-child(n+4) { max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; border: none; opacity: 0; transform: translateY(-20px); }
.services__container .service__card { transition: all 0.6s ease-in-out; }
.services__container.expanded .service__card:nth-child(n+4) { max-height: 500px; padding-top: 40px; padding-bottom: 40px; margin-bottom: 30px; border-top: 5px solid var(--color-secundario); opacity: 1; transform: translateY(0); }
.load-more-btn { display: block; margin: 20px auto 0; background-color: var(--color-secundario); color: white; padding: 12px 25px; border-radius: 50px; border: none; cursor: pointer; font-weight: bold; font-family: var(--font-titulos); transition: background-color 0.3s; }
.load-more-btn:hover { background-color: #8a7999; }
}