/*
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: Child theme for Kadence
Version: 1.1.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* --- Estilos para la Reflexión Diaria (Layout 2 Columnas) --- */

.daily-reflexion-container {
    display: grid;
    grid-template-columns: 1fr;
    /* Móvil: una columna */
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    align-items: start;
}

@media (min-width: 768px) {
    .daily-reflexion-container {
        grid-template-columns: 1fr 1fr;
        /* PC/Tablet: dos columnas iguales */
    }
}

/* Columna Izquierda: Imagen */
.reflexion-left {
    width: 100%;
}

.reflexion-left .featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
}

/* Columna Derecha: Contenido */
.reflexion-right {
    padding: 10px;
}

.reflexion-right .entry-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.reflexion-right .entry-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.2;
}

.reflexion-right .entry-date {
    font-size: 0.9rem;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Versículo Destacado */
.cautivo-verse {
    background: #fff8e1;
    border-left: 5px solid #d4af37;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Merriweather', Georgia, serif;
    /* Fuente con serifa para elegancia */
    font-style: italic;
    color: #5d4037;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cautivo-verse cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #d4af37;
    text-align: right;
    font-style: normal;
}

/* Texto Principal de la Reflexion */
.reflexion-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 30px;
    /* Fuente para leer cómodamente */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Alineación del Texto (respetando editor de WordPress) */
.reflexion-body p {
    margin-bottom: 1.5em;
    text-align: inherit;
    /* Hereda si pones centro/izda/dcha en el editor */
}

/* Video */
.cautivo-video {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* --- Ajustes de Cabecera (Logo y Título) --- */

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-logo-link img {
    max-width: 80px !important; /* Tamaño sugerido para el hierro */
    height: auto !important;
}

.site-title {
    font-family: 'Inter', 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    letter-spacing: -0.5px;
    color: #2c3e50;
    margin: 0;
}

/* Ajuste para el menú de navegación */
#site-navigation {
    display: flex;
    align-items: center;
}

/* --- MEJORA DE AIRE GLOBAL (Centrado y márgenes para bloques) --- */

/* Centrar bloques directos del contenido y añadir aire lateral */
.entry-content > *:not(.alignfull):not(.alignwide) {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Aire lateral interno para que nunca toque los bordes */
.entry-content {
    padding-left: 25px;
    padding-right: 25px;
}

/* Separación vertical generosa entre bloques e imágenes */
.wp-block-image, .kb-row-layout, .wp-block-video, .wp-block-embed {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}

/* Ajustes específicos para móviles */
@media (max-width: 767px) {
    .entry-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .wp-block-image, .kb-row-layout {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }
}

/* --- Canal de YouTube: Galería Cinemática --- */

.youtube-hub-container {
    position: relative;
    padding: 20px 0 60px 0;
    width: 100%;
    overflow: hidden;
    background: #0a0a0a; /* Fondo base muy oscuro para las partículas */
}

/* Contenedor de Partículas */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.youtube-hub-content {
    position: relative;
    z-index: 2; /* Por encima de las partículas */
}

.video-grid-three {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .video-grid-three {
        grid-template-columns: repeat(3, 1fr);
    }
}

.glass-video-card {
    background: rgba(15, 15, 15, 0.65); /* Más transparente y oscuro */
    backdrop-filter: blur(15px); /* Desenfoque más profundo */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px; /* Bordes un poco más redondeados */
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-video-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border-color: rgba(212, 175, 55, 0.4); 
    background: rgba(20, 20, 20, 0.8);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.02em;
}

.video-card-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 300;
}


/* --- Galeria Audiovisual El Cautivo CUSTOM --- */
.ca-floating-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(360px,1fr)); gap:50px; background:transparent !important; padding:20px; }
.ca-floating-card { background:#fff; border-radius:15px; padding:25px; box-shadow:0 10px 25px rgba(0,0,0,0.1); transition:transform 0.4s ease, box-shadow 0.4s ease; border:none !important; }
.ca-floating-card:hover { transform:translateY(-15px); box-shadow:0 25px 50px rgba(0,0,0,0.15); }
.ca-vid-list { list-style:none !important; padding:0 !important; margin:0 0 25px 0 !important; }
.ca-vid-item { margin-bottom:12px; line-height:1.4; color:#555; font-size:15px; padding-left:0 !important; border:none !important; }
.ca-vid-item:before { content: none !important; display:none !important; }


/* --- Pagina Contacto SOBRIA - Restauración de Visibilidad --- */
.page-id-1576, 
.page-id-1576 #inner-wrap, 
.page-id-1576 .site, 
.page-id-1576 #wrapper_pau, 
.page-id-1576 .site-container { background-color: #f5f2eb !important; }

.page-id-1576 .wp-block-kadence-column { 
    background-color: #ffffff; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important; 
    padding: 30px !important;
}

/* Forzar visibilidad de campos de formulario - VERSIÓN ATÓMICA */
.page-id-1576 .wp-block-kadence-form input[type="text"],
.page-id-1576 .wp-block-kadence-form input[type="email"],
.page-id-1576 .wp-block-kadence-form input[type="tel"],
.page-id-1576 .wp-block-kadence-form select,
.page-id-1576 .wp-block-kadence-form textarea,
.page-id-1576 input:not([type="submit"]) {
    background-color: #ffffff !important;
    border: 1.5px solid #bbbbbb !important;
    color: #000000 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    width: 100% !important;
    display: block !important;
    min-height: 50px !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 5px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important;
}

.page-id-1576 label {
    display: block !important;
    margin-top: 20px !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    font-size: 1.1rem !important;
    text-transform: none !important;
}

/* --- Footer: Webs Amigas --- */
.webs-amigas-footer {
    padding: 80px 20px;
    background: #f9f7f2;
    text-align: center;
    border-top: 1px solid #efece3;
    width: 100%;
}
.wa-tagline {
    font-family: 'Merriweather', Georgia, serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #5d4037;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.wa-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}
.wa-item {
    text-decoration: none !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 120px;
}
.wa-item:hover {
    transform: scale(1.1);
}
.wa-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    filter: grayscale(100%);
    transition: all 0.4s ease;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.wa-item:hover .wa-img {
    filter: grayscale(0%);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}
.wa-name {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.wa-item:hover .wa-name {
    color: #d4af37;
}
