/*
Theme Name: GeneratePress Child - Manuela Rodriguez
Theme URI: http://dominiio.com
Description: Tema hijo para GeneratePress con un diseño de blog editorial personalizado, carga de posts por AJAX y animaciones fluidas inspiradas en el index.
Author: Jesse Coder
Author URI: http://dominiio.com
Template: generatepress
Version: 1.0.0
*/

/* ==========================================================================
   1. VARIABLES DE DISEÑO & CONFIGURACIÓN
   ========================================================================== */
:root {
    /* Paleta Corporativa */
    --corp: #DDCAB6;
    --corp-dark: #c1ad97;
    --corp-light: #f5efe9;
    --joy: #E29578;
    --joy-dark: #C87B5E;
    --joy-light: #FDECE6;
    
    /* Tonos Neutros */
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    
    /* Tipografías */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Newsreader', Georgia, Cambria, "Times New Roman", Times, serif;
    
    /* Dimensiones y Efectos */
    --radius-card: 1.5rem; /* 24px */
    --radius-pill: 9999px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-joy-hover: 0 20px 25px -5px rgba(226, 149, 120, 0.15), 0 8px 10px -6px rgba(226, 149, 120, 0.1);
}

/* ==========================================================================
   1.2 ANULACIÓN DE COLAPSO ESTRUCTURAL (CORREGIR ANCHO 0px DE GENERATEPRESS)
   ========================================================================== */
.grid-container,
#page.grid-container,
.site-content {
    max-width: 1200px !important;
    width: 100% !important;
}

/* ==========================================================================
   2. ELEMENTOS COMUNES Y DECORATIVOS (INSPIRACIÓN INDEX)
   ========================================================================== */
.blog-body-bg {
    background-color: var(--stone-50);
    color: var(--stone-800);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

/* Blobs de Fondo Decorativos */
.blog-decorator-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blog-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
    background: var(--corp);
    animation: blogFloat 12s infinite ease-in-out alternate;
}

.blog-blob-joy {
    background: var(--joy);
    opacity: 0.15;
    animation-delay: -6s;
}

@keyframes blogFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -60px) scale(1.15); }
}

/* Animación Fade Up */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   3. ESTILOS DE LA PÁGINA /blog (ARCHIVE GRID)
   ========================================================================== */
.blog-header {
    position: relative;
    padding: 100px 0 60px 0;
    background-color: var(--corp-light);
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(221, 202, 178, 0.3);
}

.blog-header-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-header-subtitle {
    display: inline-block;
    color: var(--joy-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.blog-header-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--stone-900);
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 16px;
}

.blog-header-desc {
    color: var(--stone-600);
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Contenedor del Grid */
.blog-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

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

/* Tarjetas de Post (joy-card-hover) */
.blog-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    border: 1px solid rgba(221, 202, 182, 0.3);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-joy-hover);
    border-color: rgba(226, 149, 120, 0.25);
}

.blog-card-img-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-cover: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.blog-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Badges de Categoría */
.blog-badge-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.blog-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.blog-badge-joy {
    background-color: var(--joy-light);
    color: var(--joy-dark);
}

.blog-badge-joy:hover {
    background-color: var(--joy);
    color: #ffffff;
}

/* Títulos y textos */
.blog-card-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--stone-900);
    line-height: 1.3;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--joy);
}

.blog-card-excerpt {
    color: var(--stone-600);
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Metadatos y Footer de la card */
.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--stone-100);
    font-size: 0.8rem;
    color: var(--stone-500);
}

.blog-card-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-meta-left i {
    color: var(--joy);
}

.blog-card-readmore {
    font-weight: 600;
    color: var(--stone-800);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.blog-card:hover .blog-card-readmore {
    color: var(--joy);
}

.blog-card-readmore i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-readmore i {
    transform: translateX(4px);
}

/* ==========================================================================
   4. BOTÓN "CARGAR MÁS" (AJAX)
   ========================================================================== */
.blog-loadmore-container {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.blog-loadmore-btn {
    background-color: var(--joy);
    color: #ffffff;
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    outline: none;
}

.blog-loadmore-btn:hover {
    background-color: var(--joy-dark);
    box-shadow: 0 10px 18px rgba(226, 149, 120, 0.25);
    transform: translateY(-2px);
}

.blog-loadmore-btn:active {
    transform: translateY(0);
}

.blog-loadmore-btn.loading {
    background-color: var(--corp-dark);
    cursor: not-allowed;
    pointer-events: none;
}

.blog-loadmore-btn .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

.blog-loadmore-btn.loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   5. DISEÑO DE POST INDIVIDUAL (SINGLE 70/30)
   ========================================================================== */

/* Barra de progreso de lectura */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--joy);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Post Hero */
.single-post-hero {
    position: relative;
    padding: 120px 0 80px 0;
    background-color: var(--stone-100);
    overflow: hidden;
    border-bottom: 1px solid var(--stone-200);
}

.single-post-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    text-align: center;
}

.single-post-breadcrumbs {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone-500);
    margin-bottom: 20px;
}

.single-post-breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.single-post-breadcrumbs a:hover {
    color: var(--joy);
}

.single-post-hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--stone-900);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 24px;
}

.single-post-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 0.875rem;
    color: var(--stone-600);
    padding: 8px 24px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(221, 202, 182, 0.2);
}

.single-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.single-post-meta span i {
    color: var(--joy);
}

/* Imagen de Portada */
.single-post-featured-image-wrapper {
    max-width: 1000px;
    margin: -40px auto 50px auto;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.single-post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    border: 4px solid #ffffff;
}

/* Layout Principal */
.single-post-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 7fr 3fr;
    }
}

/* Columna de Contenido Editorial */
.single-post-content-area {
    min-width: 0; /* previene desborde flex/grid */
}

.single-post-entry-content {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: var(--radius-card);
    border: 1px solid rgba(221, 202, 182, 0.3);
    box-shadow: var(--shadow-sm);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--stone-700);
    font-weight: 300;
}

@media (min-width: 768px) {
    .single-post-entry-content {
        padding: 60px 50px;
    }
}

.single-post-entry-content p {
    margin-bottom: 28px;
}

.single-post-entry-content h2, 
.single-post-entry-content h3, 
.single-post-entry-content h4 {
    font-family: var(--font-serif);
    color: var(--stone-900);
    font-weight: 500;
    margin-top: 48px;
    margin-bottom: 20px;
}

.single-post-entry-content h2 { font-size: 2.125rem; }
.single-post-entry-content h3 { font-size: 1.75rem; }

.single-post-entry-content blockquote {
    position: relative;
    padding: 30px;
    margin: 40px 0;
    background-color: var(--stone-50);
    border-left: 4px solid var(--joy);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--stone-800);
}

.single-post-entry-content blockquote cite {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--stone-500);
    margin-top: 12px;
}

/* ==========================================================================
   6. SIDEBAR STICKY Y TARJETAS
   ========================================================================== */
.single-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 1024px) {
    .single-post-sidebar {
        position: sticky;
        top: 100px;
        height: fit-content;
        align-self: start; /* Previene el estiramiento vertical en grid, clave para sticky */
    }
}

/* Forzar overflow visible en contenedores padres de GeneratePress para habilitar el sticky del navegador */
.single-post-layout,
.blog-body-bg,
.site-main,
.content-area,
.site-content,
#page,
body {
    overflow: visible !important;
}

/* Sidebar Widgets (Mismo estilo que index / Gabinete) */
.sidebar-widget {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 30px;
    border: 1px solid rgba(221, 202, 182, 0.3);
    box-shadow: var(--shadow-sm);
}

/* Card Sobre la Autora */
.widget-author-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
}

.widget-author-avatar-bg {
    position: absolute;
    inset: 0;
    background: var(--joy-light);
    border-radius: 50%;
    transform: rotate(-6deg) translate(3px, 3px);
    z-index: 1;
}

.widget-author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.widget-author-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--stone-900);
    text-align: center;
    margin-bottom: 6px;
}

.widget-author-subtitle {
    font-size: 0.8rem;
    color: var(--joy-dark);
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.widget-author-bio {
    font-size: 0.9rem;
    color: var(--stone-600);
    line-height: 1.6;
    text-align: center;
    font-weight: 300;
}

/* Card Posts Relacionados */
.widget-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--stone-900);
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-b: 2px solid var(--corp-light);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--joy);
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post-item {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
}

.related-post-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--stone-200);
    flex-shrink: 0;
}

.related-post-info {
    min-width: 0;
}

.related-post-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--stone-800);
    line-height: 1.3;
    margin-bottom: 4px;
    transition: var(--transition-smooth);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-item:hover .related-post-title {
    color: var(--joy);
}

.related-post-date {
    font-size: 0.75rem;
    color: var(--stone-500);
}

/* Card CTA Reservas */
.widget-cta {
    background-color: var(--joy-light);
    border-color: rgba(226, 149, 120, 0.2);
    text-align: center;
}

.widget-cta-icon {
    font-size: 2.25rem;
    color: var(--joy);
    margin-bottom: 16px;
}

.widget-cta-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--stone-900);
    font-weight: 500;
    margin-bottom: 12px;
}

.widget-cta-desc {
    font-size: 0.9rem;
    color: var(--stone-600);
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 300;
}

.widget-cta-btn {
    background-color: var(--joy);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-block;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.widget-cta-btn:hover {
    background-color: var(--joy-dark);
    box-shadow: 0 8px 15px rgba(226, 149, 120, 0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   7. SECCIÓN DE COMENTARIOS (STYLING INTEGRADO)
   ========================================================================== */
.comments-area {
    margin-top: 50px;
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 30px;
    border: 1px solid rgba(221, 202, 182, 0.3);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .comments-area {
        padding: 50px;
    }
}

.comments-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--stone-900);
    margin-bottom: 30px;
    font-weight: 500;
}

/* Listado de comentarios */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-list .comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--stone-100);
}

.comment-list .comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-body {
    position: relative;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.comment-meta .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--corp-light);
}

.comment-author cite {
    font-style: normal;
    font-weight: 600;
    color: var(--stone-800);
}

.comment-metadata {
    font-size: 0.75rem;
    color: var(--stone-500);
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comment-content {
    font-size: 0.95rem;
    color: var(--stone-700);
    line-height: 1.6;
    margin-bottom: 12px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--joy);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.comment-reply-link:hover {
    color: var(--joy-dark);
}

/* Formulario de comentario */
.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--stone-900);
    margin-bottom: 24px;
    font-weight: 500;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .comment-form {
        grid-template-columns: repeat(2, 1fr);
    }
    .comment-form .comment-form-comment,
    .comment-form .comment-form-cookies-consent,
    .comment-form .form-submit {
        grid-column: span 2;
    }
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--stone-600);
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--stone-200);
    background-color: var(--stone-50);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    outline: none;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: var(--joy);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--joy-light);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--stone-500);
}

.comment-form-cookies-consent input {
    width: 16px;
    height: 16px;
    accent-color: var(--joy);
}

.form-submit input[type="submit"] {
    background-color: var(--joy);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.form-submit input[type="submit"]:hover {
    background-color: var(--joy-dark);
    box-shadow: 0 10px 18px rgba(226, 149, 120, 0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   8. RESPONSIVE Y MEJORAS DE ACCESIBILIDAD
   ========================================================================== */
@media (max-width: 767px) {
    .blog-header-title {
        font-size: 2.25rem;
    }
    .single-post-hero-title {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   9. CABECERA & PIE DE PÁGINA CUSTOM (AESTHETICS DEL INDEX)
   ========================================================================== */
/* Variables y Ajustes Globales de Estructura de GeneratePress */
body.wp-theme-generatepress {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ocultar elementos nativos que GeneratePress pueda inyectar por defecto */
.site-header,
.site-footer,
.copyright-bar,
button.menu-toggle {
    display: none !important;
}

/* 9.1 Cabecera (Navbar) */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.max-w-7xl {
    max-width: 80rem; /* 1280px */
    margin-left: auto;
    margin-right: auto;
}

/* Alineaciones flex de la barra */
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Botones y enlaces */
.text-decoration-none {
    text-decoration: none !important;
}

.nav-link {
    color: var(--stone-500);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--stone-800);
}

/* CTAs de la Cabecera */
.bg-joy {
    background-color: var(--joy) !important;
}

.bg-joy:hover {
    background-color: var(--joy-dark) !important;
}

.hover\:bg-joy\/10:hover {
    background-color: rgba(226, 149, 120, 0.1) !important;
}

.text-joy {
    color: var(--joy) !important;
}

.hover\:text-joy:hover {
    color: var(--joy) !important;
}

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.rounded-full { border-radius: var(--radius-pill); }
.text-white { color: #ffffff !important; }
.font-semibold { font-weight: 600; }
.shadow-md { box-shadow: var(--shadow-md); }

.bg-joy, .nav-link, .custom-logo-img, #gp-mobile-menu-btn {
    transition: var(--transition-smooth);
}

/* Botón Hamburguesa */
#gp-mobile-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--stone-800);
}

#gp-mobile-menu-btn:hover {
    color: var(--joy);
}

/* Menú Móvil */
#gp-mobile-menu {
    transition: var(--transition-smooth);
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform-origin: top;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--stone-800);
    font-weight: 500;
    border-bottom: 1px solid var(--stone-100);
}

.mobile-link:hover {
    background-color: var(--stone-50);
    color: var(--joy);
}

/* Ocultar el menú móvil en desktop */
@media (min-width: 1024px) {
    .hidden { display: none !important; }
    .lg\:flex { display: flex !important; }
    .lg\:hidden { display: none !important; }
}

@media (max-width: 1023px) {
    .hidden { display: none !important; }
    .hidden.lg\:flex { display: none !important; }
}

/* 9.2 Pie de Página (Footer) */
.custom-footer {
    background-color: #ffffff;
    color: var(--stone-800);
    border-top: 1px solid rgba(221, 202, 178, 0.3);
}

.custom-footer h3,
.custom-footer h4 {
    color: var(--stone-900);
}

.custom-footer a {
    color: var(--stone-600);
    transition: var(--transition-smooth);
}

.custom-footer a:hover {
    color: var(--joy);
}

/* Estructuras de Grid para el Footer */
.custom-footer .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .custom-footer .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .custom-footer .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Redes Sociales del Footer */
.custom-footer .w-10 { width: 2.5rem; }
.custom-footer .h-10 { height: 2.5rem; }
.custom-footer .bg-stone-800 { background-color: var(--stone-800) !important; }

.custom-footer .bg-stone-800:hover {
    background-color: var(--joy) !important;
}

/* Ancho del Logo en Footer */
.custom-footer img {
    max-height: 50px;
    width: auto;
}

/* ==========================================================================
   8. ESTILOS DE POPUPS MODALES Y NOTIFICACIONES TOAST (GLOBALES)
   ========================================================================== */

/* Estilos de Modales y Mobile Fixes */
.modal-overlay {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background-color: #ffffff;
    border-left: 4px solid var(--joy);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.error {
    border-left-color: #ef4444;
}

/* Ocultación de barra de navegación y pie de página duplicados en el contenido de la Home */
.entry-content nav,
.entry-content footer {
    display: none !important;
}

/* ==========================================================================
   12. SOPORTE Y AJUSTES DE DISEÑO PARA EL EDITOR DE BLOQUES (GUTENBERG)
   ========================================================================== */
/* Asegurar que la tipografía y los colores del tema se vean reflejados en el editor */
.editor-styles-wrapper {
    font-family: var(--font-sans) !important;
    background-color: var(--stone-50) !important;
    color: var(--stone-700) !important;
}

/* Títulos con fuente Serif elegante en el editor */
.editor-styles-wrapper .wp-block-post-title,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
    font-family: var(--font-serif) !important;
    color: var(--stone-900) !important;
    font-weight: 500 !important;
}

/* Configurar el ancho del bloque de escritura para que sea cómodo y no colapse */
.editor-styles-wrapper .wp-block {
    max-width: 900px !important; /* Ajusta el ancho de los bloques normales de escritura */
    width: 100% !important;
}

/* Para bloques de ancho amplio y completo */
.editor-styles-wrapper .wp-block[data-align="wide"] {
    max-width: 1100px !important;
}

.editor-styles-wrapper .wp-block[data-align="full"] {
    max-width: 100% !important;
}

/* Párrafos en el editor */
.editor-styles-wrapper p {
    font-size: 1.125rem !important;
    line-height: 1.8 !important;
    color: var(--stone-700) !important;
    font-weight: 300 !important;
    margin-bottom: 28px !important;
}

/* Citas y blockquotes en el editor */
.editor-styles-wrapper blockquote {
    padding: 20px 30px !important;
    background-color: var(--stone-100) !important;
    border-left: 4px solid var(--joy) !important;
    font-family: var(--font-serif) !important;
    font-style: italic !important;
    color: var(--stone-800) !important;
    font-size: 1.25rem !important;
    margin: 30px 0 !important;
}


