/**
 * Theme Name: Obesita la Sirenita
 * Theme URI: https://obesitalasirenita.es/
 * Author: Tu Nombre o el Nombre de tu Empresa
 * Author URI: https://tu-web.com/
 * Description: Un tema de WordPress mágico y educativo para presentar el cuento infantil "Obesita la Sirenita". Incluye un generador de cuentos con IA, diseño responsivo con Tailwind CSS y contenido gestionable desde el personalizador.
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Tags: one-column, custom-background, custom-menu, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
 * Text Domain: obesitasirenita
 */

/* Estilos personalizados para complementar Tailwind */
body {
    font-family: 'Poppins', sans-serif;
}

.comic-font {
    font-family: 'Comic Neue', cursive;
}

/* Estilos para el fondo de la sección Hero */
.underwater-bg {
    background: linear-gradient(145deg, rgba(93, 224, 230, 0.7) 0%, rgba(59, 130, 246, 0.8) 50%, rgba(30, 64, 175, 0.9) 100%),
                url('assets/images/underwater-cartoon-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.text-shadow-strong {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}


.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 2px;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estilo para el enlace activo en el menú de navegación */
.active-link {
    color: #2563eb; /* text-blue-700 */
    background-color: #dbeafe; /* bg-blue-100 */
}


/* Estilos para la nueva sección de "Crea tu cuento" */
.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3b82f6; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#storyResult {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(20px);
}

#storyResult.story-result-show {
    opacity: 1;
    transform: translateY(0);
    animation: magical-glow 1.5s ease-in-out;
}

@keyframes magical-glow {
    0% { box-shadow: 0 0 5px rgba(59, 130, 246, 0); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.7); }
    100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0); }
}

/* Estilos para el slider Swiper.js */
.swiper-button-next,
.swiper-button-prev {
    color: #3b82f6; /* Azul de tu tema */
}

.swiper-pagination-bullet-active {
    background: #3b82f6; /* Azul de tu tema */
}

/* style.css (o dentro de <style>) */

/* Estilo para el cargador/spinner */
.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3b82f6; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Clases para animar el resultado del cuento */
.story-result-show {
    opacity: 1 !important;
    transition: opacity 0.5s ease-in-out;
}

/* Fuente personalizada, ya la tienes en el HTML, pero asegúrate de que esté definida */
.comic-font {
    font-family: 'Comic Neue', cursive;
}

/* Fondo de la sección Hero */
.underwater-bg {
    /* Puedes usar una imagen real de fondo en lugar de un placeholder de color */
    background-image: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.7)), url('https://placehold.co/1920x800/1e3a8a/ffffff?text=Fondo+Submarino');
    background-size: cover;
    background-position: center;
    position: relative;
}

.text-shadow-strong {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
/* style.css (o dentro de <style>) */

.faq-content {
    /* Clave para ocultar el contenido y permitir la transición con max-height en JS */
    max-height: 0; 
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-content p {
    padding-top: 1rem; /* Añade espacio para que se vea bien cuando se despliegue */
}

.faq-btn i {
    /* Transición para el icono de flecha */
    transition: transform 0.3s;
}
