400;500;600;700&display=swap');

/* Variables de colores actualizadas */
:root {
    --primary-color: #8e44ad;       /* Púrpura principal */
    --secondary-color: #0498B3;     /* Azul */
    --accent-color-1: #c17a4a;      /* Naranja suavizado */
    --accent-color-2: #f58ebc;      /* Rosa */
    --light-bg-purple: rgba(142, 68, 173, 0.08);
    --light-bg-blue: rgba(4, 152, 179, 0.08);
    --light-bg-orange: rgba(228, 142, 88, 0.08);
    --light-bg-pink: rgba(245, 142, 188, 0.08);
    --box-shadow: 0 10px 25px rgba(142, 68, 173, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset básico y configuración base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    font-weight: 400;
    line-height: 1.6;
    color: #8e44ad;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tipografía - ACTUALIZADA: Todos los títulos en morado */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #8e44ad; /* Cambiado de #333 al color morado de la marca */
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* Estilos para elementos específicos en lugar de generales */
span, div {
}

li, a, label, input, textarea, select, button {
    margin-bottom: 1rem;
}

/* Botones */
.btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.5rem 0;
    border: none;
    font-size: 1rem;
    line-height: 1.5;
}

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

.btn-primary {
    background-color: #8e44ad;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: #ffffff;
    color: #8e44ad;
    border: 2px solid #8e44ad;
}

.btn-secondary:hover {
    border-color: transparent;
    background: linear-gradient(45deg, var(--light-bg-purple), var(--light-bg-blue));
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #8e44ad;
    color: #8e44ad;
    background-color: #ffffff;
    font-weight: 500;
    padding: 10px 20px;
}

.btn-outline:hover {
    background-color: #f8f0ff;
    transform: translateY(-2px);
}

/* Contenedor flotante de cita */
.floating-appointment {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #8e44ad;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.floating-appointment:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.floating-appointment i {
    margin-right: 10px;
}

/* Leer más / leer menos */
.read-more-state {
    display: none;
}

.read-more-target {
    opacity: 0;
    max-height: 0;
    font-size: 0;
    transition: all 0.25s ease;
    overflow: hidden;
}

.read-more-state:checked ~ .read-more-wrap .read-more-target {
    opacity: 1;
    font-size: inherit;
    max-height: 999em;
}

.read-more-trigger {
    cursor: pointer;
    display: inline-block;
    padding: 0.2em 1em;
    color: #8e44ad;
    font-size: 0.9em;
    line-height: 2;
    border: 1px solid #8e44ad;
    border-radius: 20px;
    margin: 1em 0;
    transition: all 0.3s ease;
}

.read-more-trigger:hover {
    background-color: #f8f0ff;
}

.read-more-state ~ .read-more-trigger:before {
    content: 'Leer más';
}

.read-more-state:checked ~ .read-more-trigger:before {
    content: 'Leer menos';
}

/* Tarjetas de servicios */
.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin: 0 0 15px;
    color: #8e44ad; /* Actualizado para ser coherente */
    font-size: 1.4rem;
}

.service-content p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Enfoque tarjetas - SOLUCIÓN: Forzar 3 columnas en escritorio */
.approach-card {
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.approach-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* CORREGIDO: Imágenes de approach (neurociencias) */
.approach-image-container {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background-color: #f8f0ff;
    padding: 15px;
    /* Añadir reglas para asegurar imágenes horizontales */
    aspect-ratio: 16/9;
}

.approach-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain; /* MODIFICADO: Cambiado a contain para evitar recorte */
    transition: transform 0.5s ease;
}

.approach-card:hover .approach-image-container img {
    transform: scale(1.05);
}

/* Colores para approach-cards */
.approach-card:nth-child(1) {
    border-top: 4px solid var(--primary-color);
}
.approach-card:nth-child(2) {
    border-top: 4px solid var(--secondary-color);
}
.approach-card:nth-child(3) {
    border-top: 4px solid var(--accent-color-2);
}

.approach-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Calendly popup */
.calendly-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.calendly-popup {
    width: 90%;
    max-width: 800px;
    height: 90%;
    max-height: 700px;
    background-color: white;
    border-radius: 10px;
    position: relative;
}

.calendly-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background-color: #8e44ad;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0;
    margin: 0;
}

.calendly-popup iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* NUEVO: Selector de Calendly (mañana/tarde) */
.calendly-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    z-index: 10001;
    text-align: center;
}

.calendly-selector h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.calendly-selector p {
    margin-bottom: 20px;
    color: #555;
}

.calendly-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.calendly-option {
    flex: 1 1 200px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.calendly-option:nth-child(1) {
    background-color: var(--light-bg-blue);
    border: 2px solid var(--secondary-color);
}

.calendly-option:nth-child(2) {
    background-color: var(--light-bg-purple);
    border: 2px solid var(--primary-color);
}

.calendly-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.calendly-option i {
    font-size: 28px;
}

.calendly-option:nth-child(1) i {
    color: var(--secondary-color);
}

.calendly-option:nth-child(2) i {
    color: var(--primary-color);
}

.calendly-option h4 {
    margin-bottom: 5px;
}

.calendly-option p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #666;
}

/* Paso a paso de reserva */
.booking-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.booking-step {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
}

.booking-step:nth-child(1) { border-top: 5px solid #8e44ad; }
.booking-step:nth-child(2) { border-top: 5px solid #0498B3; }
.booking-step:nth-child(3) { border-top: 5px solid #FF7E1C; }
.booking-step:nth-child(4) { border-top: 5px solid #f58ebc; }

.step-number {
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.booking-step:nth-child(1) .step-number { background-color: #8e44ad; }
.booking-step:nth-child(2) .step-number { background-color: #0498B3; }
.booking-step:nth-child(3) .step-number { background-color: #FF7E1C; }
.booking-step:nth-child(4) .step-number { background-color: #f58ebc; }

.step-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.booking-step:nth-child(1) .step-icon { color: #8e44ad; }
.booking-step:nth-child(2) .step-icon { color: #0498B3; }
.booking-step:nth-child(3) .step-icon { color: #FF7E1C; }
.booking-step:nth-child(4) .step-icon { color: #f58ebc; }

/* Terapia Online */
.online-therapy {
    background-color: var(--light-bg-blue) !important;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.online-therapy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(90deg, #8e44ad 0%, #0498B3 25%, #FF7E1C 50%, #f58ebc 75%, #8e44ad 100%);
    opacity: 0.7;
}

.online-therapy-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.online-therapy-image {
    flex: 1 1 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.online-therapy-content {
    flex: 1.5 1 450px;
}

.online-therapy-benefits {
    margin-top: 30px;
}

.online-benefit {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.online-benefit-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background-color: #f0f8ff;
    color: #0498B3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    margin-top: 5px;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: #8e44ad;
    margin-bottom: 15px;
}

/* Estilos adicionales para secciones */
.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: 15px auto 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color-1), var(--accent-color-2));
    border-radius: 2px;
}

.section-header p {
    color: #555;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* SOLUCIÓN GRID: Forzar 3 columnas en pantallas grandes */
.services-grid, .approach-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

/* Forzar 3 columnas en escritorio para approach-grid */
@media (min-width: 992px) {
    .approach-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mantener el comportamiento responsive para pantallas más pequeñas */
@media (max-width: 991px) {
    .approach-grid, .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.about-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1 1 300px;
    position: relative;
}

.about-content {
    flex: 1.5 1 450px;
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    background-color: #f8f0ff;
    color: #8e44ad;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 0;
}

/* Hero Section - Estilos actualizados */
.hero {
    padding: 80px 0;
    background-color: white;
}

.hero .container {
    display: flex;
    flex-direction: row; /* Forzar dirección horizontal */
    flex-wrap: nowrap; /* Evitar que los elementos se apilen */
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1.2; /* Ligeramente más ancho que la imagen */
    max-width: 600px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 450px;
    padding: 15px; /* Espacio para el borde decorativo */
    position: relative;
}

/* Efecto de borde decorativo */
.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #8e44ad;
    border-radius: 15px;
    transform: translate(10px, 10px);
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02); /* Ligero efecto de zoom al pasar el cursor */
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1 1 400px;
}

.contact-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #f8f0ff;
    color: #8e44ad;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row .form-group {
    flex: 1 1 200px;
}

/* Animaciones */
.fade-in { 
    opacity: 0;
    animation: fadeIn 1s forwards; 
}

.slide-in-left { 
    opacity: 0;
    animation: slideInLeft 1s forwards; 
}

.slide-in-right { 
    opacity: 0;
    animation: slideInRight 1s forwards; 
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* FAQs - NUEVO DISEÑO CON COLORES PASTELES */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.faq-item {
    margin-bottom: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Colores pasteles para cada FAQ - MODIFICADO */
.faq-item:nth-child(1) {
    border-left: 5px solid rgba(142, 68, 173, 0.4); /* Púrpura pastel */
    background-color: rgba(142, 68, 173, 0.05);
}

.faq-item:nth-child(2) {
    border-left: 5px solid rgba(4, 152, 179, 0.4); /* Azul pastel */
    background-color: rgba(4, 152, 179, 0.05);
}

.faq-item:nth-child(3) {
    border-left: 5px solid rgba(228, 142, 88, 0.4); /* Naranja pastel suavizado */
    background-color: rgba(228, 142, 88, 0.05);
}

.faq-item:nth-child(4) {
    border-left: 5px solid rgba(245, 142, 188, 0.4); /* Rosa pastel */
    background-color: rgba(245, 142, 188, 0.05);
}

.faq-item:nth-child(5) {
    border-left: 5px solid rgba(142, 68, 173, 0.4); /* Púrpura pastel nuevamente */
    background-color: rgba(142, 68, 173, 0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    border: none;
    width: 100%;
    text-align: left;
    margin-bottom: 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Colores de texto para cada pregunta - MODIFICADO */
.faq-item:nth-child(1) .faq-question {
    color: #8e44ad;
}

.faq-item:nth-child(2) .faq-question {
    color: #0498B3;
}

.faq-item:nth-child(3) .faq-question {
    color: #c17a4a; /* Naranja más apagado */
}

.faq-item:nth-child(4) .faq-question {
    color: #f58ebc;
}

.faq-item:nth-child(5) .faq-question {
    color: #8e44ad;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-answer.active {
    padding: 0 20px 20px 20px;
    max-height: 1000px;
    opacity: 1;
}

.faq-answer p {
    margin-bottom: 0;
}

.faq-icon {
    background-color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Colores de iconos para cada FAQ - MODIFICADO */
.faq-item:nth-child(1) .faq-icon {
    color: #8e44ad;
}

.faq-item:nth-child(2) .faq-icon {
    color: #0498B3;
}

.faq-item:nth-child(3) .faq-icon {
    color: #c17a4a; /* Naranja más apagado */
}

.faq-item:nth-child(4) .faq-icon {
    color: #f58ebc;
}

.faq-item:nth-child(5) .faq-icon {
    color: #8e44ad;
}

.faq-icon.rotated {
    transform: rotate(180deg);
    background-color: rgba(255, 255, 255, 0.95);
}

/* CTA */
.cta {
    background-color: #8e44ad;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: white;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta .btn {
    background-color: white;
    color: #8e44ad;
    padding: 15px 30px;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Scroll To Top */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 100px;
    width: 50px;
    height: 50px;
    background-color: #8e44ad;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Animación de sección activa */
.section-active {
    animation: section-highlight 2s ease;
}

@keyframes section-highlight {
    0% { box-shadow: 0 0 0 rgba(142, 68, 173, 0); }
    50% { box-shadow: 0 0 20px rgba(142, 68, 173, 0.3); }
    100% { box-shadow: 0 0 0 rgba(142, 68, 173, 0); }
}

/* Clases de Debug */
.debug-message {
    background-color: #ffecb3;
    border: 1px solid #ffc107;
    color: #333;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.debug-error {
    background-color: #ffcdd2;
    border: 1px solid #f44336;
    color: #c62828;
}

.debug-success {
    background-color: #c8e6c9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

/* NUEVA SECCIÓN PARA MOSTRAR POSTS RECIENTES */
.blog-section {
    padding: 70px 0;
    background-color: var(--light-bg-pink) !important;
    position: relative;
    overflow: hidden;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #8e44ad 0%, #0498B3 25%, #FF7E1C 50%, #f58ebc 75%, #8e44ad 100%);
    opacity: 0.7;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(142, 68, 173, 0.15);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(142, 68, 173, 0.85);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-content::after {
    content: '';position:absolute;bottom:0;left:0;width:100%;height:50px;background:linear-gradient(to top,white,transparent);pointer-events:none;opacity:0;transition:opacity 0.3s ease}.blog-date{display:flex;align-items:center;color:#8a8aa3;font-size:.85rem;margin-bottom:10px}.blog-date i{color:#8e44ad;margin-right:6px}.blog-title{color:#446;font-size:1.4rem;margin-bottom:15px;line-height:1.3;transition:color 0.3s ease}.blog-card:hover .blog-title{color:#8e44ad}.blog-excerpt{color:#666;margin-bottom:20px;font-size:.95rem;line-height:1.6;flex-grow:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.blog-footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:15px;border-top:1px solid #f0f0f0}.blog-read-more{color:#8e44ad;font-weight:600;font-size:.95rem;text-decoration:none;display:flex;align-items:center;transition:all 0.3s ease}.blog-read-more i{margin-left:5px;transition:transform 0.3s ease}.blog-read-more:hover{color:#703688}.blog-read-more:hover i{transform:translateX(3px)}.blog-card-decoration{position:absolute;bottom:15px;right:15px;width:50px;height:50px;opacity:.1;transition:all 0.3s ease;color:#8e44ad;display:flex;align-items:center;justify-content:center;font-size:2rem}.blog-card:hover .blog-card-decoration{transform:rotate(15deg);opacity:.15}.blog-comments{color:#8a8aa3;font-size:.85rem;display:flex;align-items:center}.blog-comments i{color:#8e44ad;margin-right:6px}.view-all-posts{display:flex;justify-content:center;margin-top:40px}.view-all-posts .btn{background:linear-gradient(45deg,#8e44ad,#7b68ee);color:#fff;padding:12px 30px;border-radius:30px;box-shadow:0 8px 20px rgb(142 68 173 / .3);transition:all 0.3s ease;font-weight:600}.view-all-posts .btn:hover{transform:translateY(-5px);box-shadow:0 12px 25px rgb(142 68 173 / .4)}.blog-empty{background-color:rgb(142 68 173 / .05);border-radius:15px;padding:40px;text-align:center;margin-top:30px}.blog-empty p{color:#8a8aa3;margin-bottom:20px}.instagram-content iframe,.testimonials-content iframe{width:100%!important;min-height:400px;border:none}.shortcode-error-message{background-color:#fff4f4;border:1px dashed #ffccd5;border-radius:10px;padding:25px;text-align:center;margin:20px 0}.shortcode-error-message h3{color:#d32f2f;margin-bottom:15px}.shortcode-error-message p{margin-bottom:15px}.shortcode-error-message code{background-color:#f8f8f8;padding:5px 10px;border-radius:5px;color:#333;display:inline-block;margin:5px 0}.hero{background-color:#fff}.about{background-color:var(--light-bg-purple)!important}.services#enfoque{background:linear-gradient(to bottom,white,var(--light-bg-blue))!important}.services#servicios{background-color:var(--light-bg-pink)!important}.testimonials{background-color:#fff}.online-therapy{background-color:var(--light-bg-blue)!important}.booking-process{background-color:var(--light-bg-purple)!important}.about#especialidad{background:linear-gradient(to bottom,white,var(--light-bg-orange))!important}.instagram-feed{background-color:#fff}.faqs{background-color:var(--light-bg-blue)!important}.contact{background-color:var(--light-bg-purple)!important}@media (max-width:1200px){h1{font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.5rem}.container{width:95%;max-width:1140px}}@media (max-width:992px){h1{font-size:2.2rem}h2{font-size:1.8rem}h3{font-size:1.3rem}p{font-size:.95rem}.hero .container{gap:30px}.hero-content{flex:1.1}.hero-image-container{flex:.9}.services-grid,.approach-grid{grid-template-columns:repeat(2,1fr)}.booking-steps{grid-template-columns:repeat(2,1fr)}.scroll-top{right:20px}.blog-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:768px){h1{font-size:1.8rem}h2{font-size:1.5rem}h3{font-size:1.2rem}p{font-size:.9rem}.container{width:92%;padding:0 10px}.hero .container{flex-direction:column}.hero-content{flex:1 1 100%;max-width:100%;text-align:center}.hero-buttons{justify-content:center}.hero-image-container{flex:1 1 100%;max-width:80%;margin-top:40px}.services-grid,.approach-grid{grid-template-columns:1fr}.booking-steps{grid-template-columns:1fr}.faq-container{gap:15px}.faq-question{padding:15px;font-size:.95rem;text-align:left}.faq-answer.active{padding:0 15px 15px 15px;text-align:left}.faq-icon{width:25px;height:25px;min-width:25px}.about-content{text-align:center}.about-inner{flex-direction:column!important}.service-content{text-align:center}.service-content .btn{align-self:center}.online-benefit{align-items:center;text-align:center;flex-direction:column}.online-benefit-icon{margin:0 0 10px 0}.blog-grid{grid-template-columns:1fr}.blog-image{height:220px}.calendly-selector{padding:20px}.calendly-options{flex-direction:column}.calendly-option{flex:1 1 auto}}@media (max-width:576px){h1{font-size:1.7rem}h2{font-size:1.5rem}h3{font-size:1.3rem}p{font-size:.9rem}.btn{font-size:.85rem;padding:10px 20px;width:100%;margin:.5rem 0;justify-content:center;text-align:center}.container{width:94%}.hero-image-container{max-width:100%;padding:10px}.hero-image-container::before{transform:translate(8px,8px)}.floating-appointment{width:100%;right:0;bottom:0;border-radius:0;justify-content:center}.section-header{margin-bottom:30px;text-align:center}.about-badges{justify-content:center}.contact-detail{flex-direction:column;text-align:center;margin-left:auto;margin-right:auto}.contact-icon{margin:0 auto 15px}.contact-text{text-align:center}.faq-container{gap:10px}.faq-item{border-radius:10px}.faq-question{padding:12px;font-size:.95rem;line-height:1.4}.faq-answer.active{padding:0 12px 12px 12px}.faq-answer p{font-size:.9rem;line-height:1.5}.faq-icon{width:22px;height:22px;min-width:22px}.service-card{text-align:center}.service-content .btn{margin-left:auto;margin-right:auto}.hero-buttons{flex-direction:column;width:100%}.online-therapy-content{text-align:center}.blog-image{height:180px}.blog-content{padding:20px}.blog-title{font-size:1.25rem}}