/*
 Theme Name:   Kinkoi
 Theme URI:    https://www.kadencewp.com/
 Description:  Tema Hijo de Kadence diseñado a medida para Kinkoishibari. Espacio seguro, estética pausada y elegante.
 Author:       Kinkoi AI
 Author URI:   https://www.kadencewp.com/
 Template:     kadence
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  kinkoi
*/

/* Aquí añadiremos nuestro CSS a medida, sin sobrecargar Kadence. */
/* Nota: @font-face de HIRO gestionado por theme.json */

.site-title,
.site-title a,
.site-branding .site-title,
.fuente-hiro {
    font-family: 'HIRO', sans-serif !important;
}

/* Dar espacio extra por arriba al título principal para despegarlo de la cabecera */
/* Font-size y color definidos aquí para que funcionen en TODAS las páginas
   (Kadence genera CSS por página; estas reglas globales aseguran el hero en inglés) */
.fuente-hiro {
    margin-top: calc(50px + 0.5cm) !important;
    font-size: clamp(60px, 12vw, 140px) !important;
    color: #F9F6F0 !important;
    line-height: 1.05 !important;
    text-align: center !important;
}
/* Subtítulo del hero */
.kt-adv-heading320_ba2e36-fc {
    color: #F9F6F0 !important;
    text-align: center !important;
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
    display: block;
    width: 100%;
    margin-top: 35px !important;
}
@media (max-width: 768px) {
    .fuente-hiro { margin-top: 28px !important; font-size: clamp(48px, 14vw, 100px) !important; }
}

/* Ocultar el texto del sitio al lado del logo en la cabecera */
.site-branding .site-title-wrap {
    display: none !important;
}

/* ── Selector de idioma (banderas) ────────────────────────────────────────── */
.kinkoi-lang-switcher {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.12);
}
.kinkoi-lang-flag-link {
    display: flex;
    align-items: center;
    opacity: 0.45;
    transition: opacity 0.2s;
    border-radius: 2px;
    overflow: hidden;
    line-height: 0;
}
.kinkoi-lang-flag-link:hover,
.kinkoi-lang-flag-link.kinkoi-lang-active {
    opacity: 1;
}
.kinkoi-lang-flag {
    display: block;
    width: 22px;
    height: auto;
    border-radius: 2px;
}
@media (max-width: 768px) {
    .kinkoi-lang-switcher { padding-left: 0; border-left: none; margin-left: 0; }
}

/* Aclarar el color de los enlaces del menú principal para que destaquen sobre fondo oscuro */
.main-navigation .primary-menu-container > ul > li.menu-item > a {
    color: #F9F6F0 !important; /* Usamos el crema claro Kinkoi o #ffffff */
}

/* Color al pasar el ratón (hover) */
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover {
    color: #D4AF37 !important; /* Oro Kinkoi */
}

/* ========================================================================= */
/* ESTILOS PARA TARJETAS DE LOS PILARES (CLASE CUSTOM)                       */
/* ========================================================================= */

/* Contenedor ancho para que ocupen más pantalla */
.kinkoi-card-container {
    max-width: 1400px !important;
    margin: 40px auto !important;
}

.kinkoi-card {
    background-color: #1a1c20 !important; /* Fondo oscuro elegante */
    border-radius: 8px !important;
    padding-bottom: 2rem !important;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
    border: 1px solid rgba(255,255,255,0.02) !important; /* Borde súper sutil */
    box-shadow: 0px 5px 15px rgba(0,0,0,0.5) !important; /* Sombra para dar profundidad */
    position: relative;
    cursor: pointer;
    overflow: hidden; /* Para que la imagen respete el borde curvo superior */
    height: 100%; /* Para que las 3 sean igual de altas */
}

.kinkoi-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0px 15px 30px rgba(0,0,0,0.8) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important; /* Brillo dorado muy suave en el borde */
}

/* La imagen de arriba */
.kinkoi-card figure.wp-block-image {
    margin: 0 0 1.5rem 0 !important;
}

.kinkoi-card img {
    border-radius: 8px 8px 0 0 !important;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* El título */
.kinkoi-card h4 {
    color: #D4AF37 !important; /* Oro Kinkoi */
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
}

/* El texto principal de la tarjeta */
.kinkoi-card p {
    color: #a0a5aa !important; /* Gris claro */
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    padding: 0 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* El último párrafo (saber +) */
.kinkoi-card p:last-child {
    margin-bottom: 0 !important;
}

/* Efecto hover sobre el enlace interior 'saber +' */
.kinkoi-card a {
    color: #F9F6F0 !important;
    text-transform: lowercase !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.kinkoi-card:hover a {
    color: #D4AF37 !important; /* El dorado */
}

/* ========================================================================= */
/* ESTILOS PARA LOS EVENTOS DE GOOGLE CALENDAR (SHORTCODE)                   */
/* ========================================================================= */

.kinkoi-events-wrapper {
    margin: 60px auto;
}

.kinkoi-section-title {
    text-align: center;
    color: #D4AF37 !important;
    font-family: 'HIRO', sans-serif !important;
    font-size: clamp(1.6rem, 5vw, 2.5rem) !important;
    margin-bottom: 30px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

.kinkoi-events-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
}

.kinkoi-event-item {
    background-color: #272a31; /* Más clarito (gris antracita) para despegarse del fondo negro */
    border: 1px solid rgba(255,255,255,0.03); 
    border-left: 4px solid #D4AF37; /* Toque dorado vertical a la izquierda */
    border-radius: 8px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.4);
}

.kinkoi-event-item:hover {
    transform: translateX(5px); /* Efecto desplazamiento suave a la derecha al hacer hover */
    background-color: #31343d; /* Se aclara todavía más al pasar el ratón */
    box-shadow: 0px 8px 20px rgba(0,0,0,0.6);
    border-color: rgba(212, 175, 55, 0.4); /* Borde dorado más visible al pasar el ratón */
}

/* Bloque de Fecha */
.kinkoi-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding-right: 25px;
    border-right: 1px solid rgba(255,255,255,0.1);
    margin-right: 25px;
    flex-shrink: 0;
}

.kinkoi-event-day {
    font-size: 2.2rem;
    font-weight: 700;
    color: #D4AF37; /* Dorado */
    line-height: 1;
    font-family: 'HIRO', sans-serif;
}

.kinkoi-event-month {
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #a0a5aa; /* Gris */
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Bloque de Información central */
.kinkoi-event-info {
    flex-grow: 1;
}

.kinkoi-event-title {
    margin: 0 0 5px 0 !important;
    font-size: 1.3rem !important;
    color: #F9F6F0 !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
}

.kinkoi-event-location {
    margin: 0 !important;
    color: #888c91 !important;
    font-size: 0.9rem !important;
}

/* Badge (Próximamente) a la derecha */
.kinkoi-event-action {
    margin-left: 20px;
    flex-shrink: 0; /* Evita que el badge se comprima si hay texto largo */
}

.kinkoi-event-badge {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap; /* Fuerza a que no salte de línea */
    display: inline-block;
}

.kinkoi-no-events {
    text-align: center;
    color: #a0a5aa;
    margin: 40px 0;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .kinkoi-event-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .kinkoi-event-date {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-right: 0;
        padding-bottom: 15px;
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .kinkoi-event-month {
        margin-top: 0;
    }
    
    .kinkoi-event-action {
        margin-left: 0;
        margin-top: 15px;
    }
    
    /* Pilares en móvil: dejar respirar a los lados */
    .kinkoi-card-container {
        padding: 0 20px !important;
        margin: 20px auto !important;
    }
}

/* ========================================================================= */
/* AJUSTES FINOS HERO Y LOGO                                                 */
/* ========================================================================= */

/* Reducir un 20% el tamaño del logo (era 200px según el DOM, pasamos a 160px) */
.site-branding a.brand img {
    max-width: 160px !important;
}


/* ========================================================================= */
/* GALERÍA DINÁMICA MASONRY FILTRABLE                                        */
/* ========================================================================= */

/* Oculta los títulos estándar de la página nativa de WordPress */
.page-title, .entry-header, .entry-title {
    display: none !important;
}

/* Forzar fondo oscuro en la página Galería y en los Álbumes */
body.kinkoi-gallery-page, 
body.kinkoi-gallery-page #wrapper, 
body.kinkoi-gallery-page .site-container, 
body.kinkoi-gallery-page .site-content,
body.single-album,
body.single-album #wrapper,
body.single-album .site-container,
body.single-album .site-content {
    background-color: #1a1d20 !important;
}

/* Eliminar el espacio en blanco de Kadence encima de la galería */
body.kinkoi-gallery-page .content-wrap,
body.kinkoi-gallery-page .entry-content-wrap,
body.kinkoi-gallery-page .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Variable para la altura del header — cambiar aquí si el header de Kadence se ajusta */
:root { --kinkoi-header-h: 80px; }

.kinkoi-gallery-system {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 100vh;
    padding: 0 2% 60px 2%;
    margin-top: calc(-1 * var(--kinkoi-header-h)) !important;
    background-color: transparent !important;
}

/* Nota de privacidad / intro */
.kinkoi-gallery-intro {
    max-width: 680px;
    margin: 0 auto 36px;
    padding: calc(var(--kinkoi-header-h) + 24px) 16px 0;
    text-align: center;
}
.kinkoi-gallery-intro p {
    color: #888 !important;
    font-size: .88rem !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}
.kinkoi-gallery-intro strong { color: #aaa !important; }

/* --- Filtros --- */
.kinkoi-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    align-items: center;
}

.kinkoi-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 15px;
}

.kinkoi-filter-label {
    color: #a0a5aa;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 5px;
}

.kinkoi-filter-btn {
    background: transparent;
    color: #F9F6F0;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.kinkoi-filter-btn:hover,
.kinkoi-filter-btn.active {
    border-color: #D4AF37;
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
}

.kinkoi-tag-btn {
    font-size: 0.8rem;
    border-style: dashed;
}

/* --- Masonry: column-count con proporciones naturales de imagen --- */
.kinkoi-masonry-grid {
    column-count: 3;
    column-gap: 14px;
}

@media (max-width: 900px) {
    .kinkoi-masonry-grid { column-count: 2; }
}
@media (max-width: 600px) {
    .kinkoi-masonry-grid { column-count: 1; }
    .kinkoi-filter-group {
        border-left: none;
        padding-left: 0;
        width: 100%;
        justify-content: center;
    }
}

.kinkoi-masonry-item {
    break-inside: avoid;
    margin-bottom: 14px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: opacity 0.25s ease;
}

/* Oculto por filtro — display:none hace que column-count recoloque automáticamente */
.kinkoi-hidden { display: none !important; }

/* Sin resultados */
.kinkoi-no-results,
.kinkoi-gallery-empty {
    text-align: center;
    color: #666;
    padding: 3rem 1rem;
    font-size: .95rem;
}

.kinkoi-masonry-link {
    display: block;
    position: relative;
    text-decoration: none;
}

/* Imagen a proporción natural — sin altura fija */
.kinkoi-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* --- Overlay Hover --- */
.kinkoi-album-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    padding: 40px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 8px 8px;
    display: flex;
    align-items: flex-end;
}

.kinkoi-masonry-item:hover .kinkoi-album-overlay {
    opacity: 1;
}

.kinkoi-album-overlay h3 {
    color: #F9F6F0 !important;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}



.kinkoi-album-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px 20px; /* Padding top extra para compensar el header absoluto */
    margin-top: 0px; 
}

.kinkoi-album-hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.kinkoi-album-meta {
    color: #D4AF37;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

.kinkoi-album-title {
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 30px !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.kinkoi-album-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.kinkoi-album-tag-pill {
    background: rgba(255,255,255,0.1);
    color: #F9F6F0;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Remover el borde superior feo de las páginas estándar */
.kinkoi-album-content {
    padding-top: 60px;
    padding-bottom: 60px;
    color: #a0a5aa;
}

/* Eventos Page Overrides */
.eventos-main-title {
    font-family: 'HIRO', sans-serif !important;
    margin-top: -120px !important;
    position: relative;
    z-index: 10;
}
.eventos-subtitle {
    font-family: 'HIRO', sans-serif !important;
}

/* ========================================================================= */
/* PRÓXIMOS EVENTOS – px-item card system (usado en calendario y home)        */
/* ========================================================================= */
.kinkoi-proximos { max-width: 980px; margin: 48px auto 0; padding: 0 16px 60px; }
.kinkoi-proximos-header { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.kinkoi-proximos-header h2 { font-family: 'HIRO', 'Georgia', serif; color: #D4AF37; font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: 3px; text-transform: uppercase; margin: 0; }
.kinkoi-proximos-header::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, #D4AF3744, transparent); }
.kinkoi-proximos-list { display: flex; flex-direction: column; gap: 10px; }

.kinkoi-px-item { display: grid; grid-template-columns: 80px 1fr auto auto; align-items: stretch; gap: 0; background: #181818; border: 1px solid #252525; border-radius: 10px; overflow: hidden; position: relative; transition: border-color .2s, background .2s, transform .15s; }
.kinkoi-px-item:hover { border-color: #D4AF3755; background: #1e1c16; transform: translateX(3px); }
/* Cover link: cubre toda la tarjeta para que sea navegable por teclado y rastreable por SEO */
.kinkoi-px-cover-link { position: absolute; inset: 0; z-index: 1; }
/* El botón de calendario y la flecha quedan por encima del cover link */
.kinkoi-px-cal, .kinkoi-px-arrow { position: relative; z-index: 2; }

/* Columna fecha */
.kinkoi-px-date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 10px; background: #111; border-right: 1px solid #252525; min-width: 80px; gap: 1px; }
.kinkoi-px-dow  { font-size: .6rem; text-transform: uppercase; letter-spacing: 1.5px; color: #D4AF3799; margin-bottom: 2px; }
.kinkoi-px-day  { font-size: 1.9rem; font-weight: 700; color: #D4AF37; line-height: 1; font-variant-numeric: tabular-nums; }
.kinkoi-px-mon  { font-size: .62rem; text-transform: uppercase; letter-spacing: 1.5px; color: #555; margin-top: 4px; }

/* Columna info */
.kinkoi-px-info { padding: 8px 18px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.kinkoi-px-badge { display: inline-block; font-size: .58rem; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 8px; border: 1px solid; align-self: flex-start; margin: 0; }
.kinkoi-px-badge.type-taller      { color: #9fd3ff; border-color: #4a9eff44; background: #4a9eff12; }
.kinkoi-px-badge.type-performance { color: #ffb3d0; border-color: #ff6b9d44; background: #ff6b9d12; }
.kinkoi-px-badge.type-jam         { color: #a8f0c0; border-color: #4ecf7a44; background: #4ecf7a12; }
.kinkoi-px-badge.type-lab         { color: #ffd0a0; border-color: #ff9f4344; background: #ff9f4312; }
.kinkoi-px-badge.type-peer        { color: #e8d89c; border-color: #D4AF3744; background: #D4AF3712; }
.kinkoi-px-badge.type-foto        { color: #e0b8ff; border-color: #c36fff44; background: #c36fff12; }
.kinkoi-px-badge.type-reunion     { color: #b3f0ff; border-color: #70deff44; background: #70deff12; }
.kinkoi-px-badge.type-general     { color: #aaa;    border-color: #55555544; background: #55555512; }
.kinkoi-px-title { display: block; font-size: .97rem; font-weight: 600; color: #e8e8e8; margin: 0; padding: 0; line-height: 1.3; }
.kinkoi-px-desc  { display: -webkit-box; font-size: .88rem; color: #888; line-height: 1.4; margin: 0; padding: 0; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kinkoi-px-time  { display: block; font-size: .73rem; color: #777; letter-spacing: .5px; margin: 0; padding: 0; line-height: 1; margin-top: 6px; }

/* Columna calendario */
.kinkoi-px-cal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 14px; border-left: 1px solid #252525; color: #3a3a3a; text-decoration: none; font-size: .58rem; letter-spacing: .5px; text-transform: uppercase; transition: color .2s, background .2s; }
.kinkoi-px-cal:hover { color: #D4AF37; background: #D4AF370a; }
.kinkoi-px-cal svg { display: block; }

/* Columna flecha */
.kinkoi-px-arrow { padding: 0 14px; color: #2a2a2a; font-size: 1.1rem; transition: color .2s; display: flex; align-items: center; border-left: 1px solid #252525; }
.kinkoi-px-item:hover .kinkoi-px-arrow { color: #D4AF37; }

/* Responsive */
@media (max-width: 600px) {
    .kinkoi-px-item { grid-template-columns: 64px 1fr auto auto; }
    .kinkoi-px-day  { font-size: 1.5rem; }
    .kinkoi-px-date { padding: 14px 6px; min-width: 64px; }
    .kinkoi-px-info { padding: 8px 12px; }
    .kinkoi-px-title { font-size: .88rem; }
    .kinkoi-px-desc { -webkit-line-clamp: 1; }
    .kinkoi-px-cal span { display: none; }
}

/* ========================================================================= */
/* FOOTER KINKOI                                                               */
/* ========================================================================= */
.kinkoi-footer { background: #0d0f12; border-top: 1px solid #1a1d20; color: #666; font-size: .9rem; }
.kinkoi-footer-inner { max-width: 1200px; margin: 0 auto; padding: 60px 24px 40px; display: grid; grid-template-columns: 260px 1fr auto; gap: 48px; align-items: start; }
.kinkoi-footer-brand .site-logo img,
.kinkoi-footer-brand img { max-width: 120px; opacity: .75; }
.kinkoi-footer-name { font-family: 'HIRO', sans-serif; font-size: 1.3rem; color: #D4AF37; letter-spacing: 2px; display: block; }
.kinkoi-footer-tagline { margin-top: 14px; line-height: 1.7; color: #444; font-size: .83rem; }
.kinkoi-footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.kinkoi-footer-col h4 { color: #D4AF37; font-size: .65rem; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 16px; }
.kinkoi-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kinkoi-footer-col a { color: #555; text-decoration: none; transition: color .2s; font-size: .85rem; }
.kinkoi-footer-col a:hover { color: #D4AF37; }
.kinkoi-footer-social h4 { color: #D4AF37; font-size: .65rem; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 16px; }
.kinkoi-footer-links { display: flex; flex-direction: column; gap: 14px; }
.kinkoi-footer-social-link { display: flex; align-items: center; gap: 10px; color: #444; text-decoration: none; transition: color .2s; font-size: .85rem; }
.kinkoi-footer-social-link:hover { color: #D4AF37; }
.kinkoi-footer-bottom { border-top: 1px solid #141618; max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; font-size: .76rem; color: #2e2e2e; gap: 16px; flex-wrap: wrap; }
.kinkoi-footer-legal-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.kinkoi-footer-legal-links a { color: #2e2e2e; text-decoration: none; transition: color .2s; }
.kinkoi-footer-legal-links a:hover { color: #D4AF37; }
@media (max-width: 900px) {
    .kinkoi-footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 24px; }
    .kinkoi-footer-nav { gap: 28px; }
    .kinkoi-footer-bottom { flex-direction: column; text-align: center; }
}

/* ========================================================================= */
/* PÁGINA 404 PERSONALIZADA                                                   */
/* ========================================================================= */
.kinkoi-404-main { min-height: 70vh; display: flex; align-items: center; justify-content: center; background: #1a1d20; }
.kinkoi-404-wrap { text-align: center; padding: 60px 24px; }
.kinkoi-404-number { font-family: 'HIRO', sans-serif; font-size: clamp(6rem, 20vw, 12rem); color: #D4AF37; line-height: 1; opacity: .12; margin-bottom: -0.25em; position: relative; z-index: 0; }
.kinkoi-404-title { font-family: 'HIRO', sans-serif; font-size: clamp(1.3rem, 4vw, 2rem); color: #F9F6F0; letter-spacing: 2px; position: relative; z-index: 1; margin: 0 0 16px; }
.kinkoi-404-desc { color: #555; font-size: .93rem; max-width: 420px; margin: 0 auto 36px; line-height: 1.8; }
.kinkoi-404-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.kinkoi-404-btn { background: #D4AF37; color: #1a1d20; padding: 12px 28px; border-radius: 4px; text-decoration: none; font-size: .88rem; font-weight: 600; letter-spacing: .5px; transition: background .2s; }
.kinkoi-404-btn:hover { background: #B5952F; color: #1a1d20; }
.kinkoi-404-btn-ghost { background: transparent; color: #D4AF37; border: 1px solid #D4AF3755; }
.kinkoi-404-btn-ghost:hover { background: rgba(212,175,55,.08); color: #D4AF37; }

/* ── Blog: Anuncios banner (homepage) ─────────────────────────────────── */
.kinkoi-anuncios-banner {
    background: rgba(212,175,55,0.06);
    border-top: 1px solid rgba(212,175,55,0.2);
    border-bottom: 1px solid rgba(212,175,55,0.2);
    border-left: 3px solid #D4AF37;
    border-top: 1px solid rgba(212,175,55,0.25);
    border-bottom: 1px solid rgba(212,175,55,0.25);
    padding: .9rem 1.5rem;
}
.kinkoi-anuncios-banner-inner { max-width: 1200px; margin: 0 auto; }
.kab-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.kab-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #D4AF37; }
.kab-ver-todos { font-size: .8rem; color: #D4AF37; text-decoration: none; opacity: .8; }
.kab-ver-todos:hover { opacity: 1; text-decoration: underline; }
.kab-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.kab-item-link { display: flex; gap: .8rem; align-items: baseline; text-decoration: none; }
.kab-date { font-size: .75rem; color: #8a7f6a; white-space: nowrap; flex-shrink: 0; }
.kab-title { font-size: .9rem; color: #EBE1C9; }
.kab-item-link:hover .kab-title { color: #D4AF37; }

/* ── Blog: Hub "Anuncios y Blogs" ────────────────────────────────────── */
.kbh-wrap { max-width: 900px; margin: 0 auto; padding: 0 1.2rem 4rem; }
.kbh-section { padding: 2.5rem 0; }
.kbh-section-header { margin-bottom: 1.5rem; }
.kbh-section-title { font-size: 1.1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #D4AF37; margin: 0 0 .3rem; }
.kbh-cuaderno-title { color: #c4a882; }
.kbh-tatami-title { color: #7a9e8a; }
.kbh-section-desc { font-size: .92rem; color: #8a7f6a; margin: 0 0 .6rem; }
.kbh-ver-mas { font-size: .83rem; color: #D4AF37; text-decoration: none; font-weight: 600; }
.kbh-ver-mas:hover { text-decoration: underline; }
.kbh-ver-mas-cuaderno { color: #c4a882; }
.kbh-ver-mas-tatami { color: #7a9e8a; }
.kbh-divider { border: none; border-top: 1px solid rgba(235,225,201,0.12); margin: 0; }
.kbh-empty { color: #555; font-style: italic; font-size: .9rem; }
.kbh-anuncios-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.kbh-anuncio-item a { display: flex; gap: 1rem; align-items: baseline; padding: .7rem .2rem; border-bottom: 1px solid rgba(235,225,201,0.1); text-decoration: none; }
.kbh-anuncio-item:last-child a { border-bottom: none; }
.kbh-anuncio-date { font-size: .77rem; color: #6a6050; white-space: nowrap; flex-shrink: 0; }
.kbh-anuncio-title { font-size: .95rem; color: #EBE1C9; }
.kbh-anuncio-item a:hover .kbh-anuncio-title { color: #D4AF37; }
.kbh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.8rem; }
.kbh-card { display: flex; flex-direction: column; background: rgba(255,255,255,0.04); border: 1px solid rgba(235,225,201,0.1); border-radius: 12px; overflow: hidden; text-decoration: none; transition: border-color .2s, transform .2s; }
.kbh-card:hover { border-color: rgba(212,175,55,0.35); transform: translateY(-3px); }
.kbh-card-cuaderno { border-color: rgba(196,168,130,0.15); }
.kbh-card-cuaderno:hover { border-color: rgba(196,168,130,0.5); }
.kbh-card-tatami { border-color: rgba(122,158,138,0.15); }
.kbh-card-tatami:hover { border-color: rgba(122,158,138,0.5); }
.kbh-card-img { height: 240px; background-size: cover; background-position: center; }
.kbh-card-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; gap: .45rem; }
.kbh-card-date { font-size: .78rem; color: #6a6050; }
.kbh-card-title { font-size: 1.05rem; font-weight: 700; color: #F9F6F0; margin: 0; line-height: 1.35; }
.kbh-card-excerpt { font-size: .9rem; color: #8a7f6a; margin: 0; line-height: 1.6; flex: 1; }
.kbh-card-author { font-size: .8rem; color: #7a9e8a; margin-top: .4rem; font-style: italic; }
@media (max-width: 680px) {
    .kbh-cards { grid-template-columns: 1fr; }
}

/* ========================================================================= */
/* CUADERNO DE SHIBARI — Hero de la página listado                            */
/* ========================================================================= */
/* Tarjetas extra-grandes — páginas de listado completo (Cuaderno y Tatami) */
.kcds-grid,
.ktat-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)) !important;
    gap: 2.2rem !important;
}
.kcds-grid .kbh-card-img,
.ktat-grid .kbh-card-img { height: 300px !important; }
.kcds-grid .kbh-card-body,
.ktat-grid .kbh-card-body { padding: 1.6rem !important; gap: .6rem !important; }
.kcds-grid .kbh-card-title,
.ktat-grid .kbh-card-title { font-size: 1.2rem !important; line-height: 1.35 !important; }
.kcds-grid .kbh-card-excerpt,
.ktat-grid .kbh-card-excerpt { font-size: .97rem !important; line-height: 1.65 !important; }
.kcds-grid .kbh-card-date,
.ktat-grid .kbh-card-date { font-size: .82rem !important; }
@media (max-width: 780px) {
    .kcds-grid,
    .ktat-grid { grid-template-columns: 1fr !important; }
}

.kcds-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }
.kcds-hero {
    background: linear-gradient(135deg, #0d0a07 0%, #1a1208 50%, #0d0a07 100%);
    border-bottom: 1px solid #2a2010;
    padding: 60px 20px 48px;
    margin: 0 -20px 48px;
}
.kcds-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}
.kcds-avatar-wrap { flex-shrink: 0; }
.kcds-avatar { border-radius: 50%; border: 3px solid #D4AF37; width: 80px; height: 80px; object-fit: cover; display: block; }
.kcds-hero-text { flex: 1; }
.kcds-hero-title { font-family: 'HIRO', Georgia, serif; font-size: clamp(1.4rem, 3vw, 2rem); color: #F9F6F0; margin: 0 0 .4rem; letter-spacing: 1px; }
.kcds-hero-sub { color: #9a8a6a; margin: 0; font-size: .95rem; line-height: 1.6; }
.kcds-ig-link { color: #D4AF37; text-decoration: none; white-space: nowrap; }
.kcds-ig-link:hover { text-decoration: underline; }
.kcds-grid { margin-top: 0; }
@media (max-width: 640px) {
    .kcds-hero-inner { flex-direction: column; text-align: center; }
}

/* ========================================================================= */
/* EL TATAMI — Hero y CTA de la página listado                               */
/* ========================================================================= */
.ktat-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }
.ktat-hero {
    background: linear-gradient(135deg, #0a1410 0%, #1a2d23 50%, #0a1410 100%);
    border-bottom: 1px solid #1e3028;
    padding: 60px 20px 48px;
    margin: 0 -20px 48px;
}
.ktat-hero-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.ktat-hero-title { font-family: 'HIRO', Georgia, serif; font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: #F9F6F0; margin: 0 0 .6rem; }
.ktat-hero-sub { color: #7a9e8a; margin: 0; font-size: 1rem; line-height: 1.7; max-width: 560px; margin: 0 auto; }
.ktat-grid { margin-top: 0; }
.ktat-cta {
    margin-top: 60px;
    text-align: center;
    padding: 40px 20px;
    background: #0f1a14;
    border-radius: 12px;
    border: 1px solid #1e3028;
}
.ktat-cta p { color: #a0b8a8; margin: 0 0 16px; font-size: 1rem; }
.ktat-cta-btn {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: .95rem;
    transition: background .2s;
}
.ktat-cta-btn:hover { background: #1da851; color: #fff; }

/* ========================================================================= */
/* ANUNCIOS — Hero y listado de la página                                     */
/* ========================================================================= */
.kann-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 60px; }
.kann-hero {
    text-align: center;
    padding: 60px 20px 48px;
    border-bottom: 1px solid #252525;
    margin-bottom: 40px;
}
.kann-hero-title { font-family: 'HIRO', Georgia, serif; font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: #F9F6F0; margin: 0 0 .5rem; }
.kann-hero-sub { color: #888; margin: 0; font-size: 1rem; }
.kann-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.kann-item { border-bottom: 1px solid #1e1e1e; }
.kann-item-link {
    display: grid;
    grid-template-columns: 64px 1px 1fr;
    gap: 0 20px;
    align-items: center;
    padding: 24px 8px;
    text-decoration: none;
    transition: background .15s;
    border-radius: 4px;
}
.kann-item-link:hover { background: #131313; }
.kann-date-block { text-align: center; flex-shrink: 0; }
.kann-day { display: block; font-size: 2rem; font-weight: 800; color: #D4AF37; line-height: 1; }
.kann-month-year { display: block; font-size: .68rem; color: #666; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.kann-sep { width: 1px; height: 100%; background: #2a2a2a; align-self: stretch; }
.kann-title { font-size: 1rem; font-weight: 700; color: #F9F6F0; margin: 0 0 4px; line-height: 1.4; }
.kann-excerpt { font-size: .85rem; color: #888; margin: 0; line-height: 1.5; }
.kann-empty { text-align: center; color: #666; padding: 3rem 0; }

/* ========================================================================= */
/* SINGLE POST — Template kinkoi/single.php                                  */
/* ========================================================================= */

/* --- Hero ----------------------------------------------------------------- */
.kpost-hero {
    position: relative;
    background: #0d0a07;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.kpost-hero--cuaderno { background: linear-gradient(135deg, #0d0a07 0%, #1a1208 100%); }
.kpost-hero--tatami   { background: linear-gradient(135deg, #0a1410 0%, #1a2d23 100%); }
.kpost-hero--anuncio  { background: linear-gradient(135deg, #111111 0%, #1c1c1c 100%); }

.kpost-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .22;
}
.kpost-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,.85) 100%);
}
.kpost-hero-inner {
    position: relative; z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    padding: 80px 24px 48px;
    width: 100%;
}

/* Category pill */
.kpost-cat-label { margin: 0 0 14px; }
.kpost-cat-link {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #D4AF37;
    text-decoration: none;
    border: 1px solid #D4AF3755;
    padding: 3px 10px;
    border-radius: 20px;
}
.kpost-cat-link:hover { border-color: #D4AF37; }

/* Title */
.kpost-title {
    font-family: 'HIRO', Georgia, serif !important;
    font-size: clamp(1.8rem, 4.5vw, 3rem) !important;
    line-height: 1.2 !important;
    color: #F9F6F0 !important;
    margin: 0 0 24px !important;
    text-shadow: 0 2px 16px rgba(0,0,0,.6);
}

/* Meta bar */
.kpost-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .85rem;
}
.kpost-avatar {
    border-radius: 50%;
    border: 2px solid #D4AF37;
    width: 36px !important;
    height: 36px !important;
    object-fit: cover;
    flex-shrink: 0;
}
.kpost-author { color: #F9F6F0; font-weight: 600; }
.kpost-ig-chip {
    color: #D4AF37;
    text-decoration: none;
    font-size: .78rem;
    border: 1px solid #D4AF3755;
    padding: 2px 8px;
    border-radius: 12px;
}
.kpost-ig-chip:hover { border-color: #D4AF37; }
.kpost-meta-sep { color: #555; }
.kpost-date { color: #888; }

/* --- Content -------------------------------------------------------------- */
.kpost-content-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* Force readable heading and text colors inside post content */
.kpost-content h1,
.kpost-content h2,
.kpost-content h3,
.kpost-content h4,
.kpost-content h5,
.kpost-content h6 {
    color: #F9F6F0 !important;
    font-family: 'HIRO', Georgia, serif !important;
    margin-top: 2rem !important;
    margin-bottom: .6rem !important;
    line-height: 1.25 !important;
}
.kpost-content p,
.kpost-content li {
    color: #cccccc !important;
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
}
.kpost-content strong { color: #F9F6F0 !important; }
.kpost-content em { color: #bbbbbb !important; }
.kpost-content a { color: #D4AF37 !important; }
.kpost-content a:hover { color: #B5952F !important; }
.kpost-content blockquote {
    border-left: 3px solid #D4AF37;
    padding-left: 20px;
    margin-left: 0;
    color: #aaaaaa !important;
    font-style: italic;
}
.kpost-content figure figcaption { color: #666 !important; font-size: .82rem !important; }

/* --- Divider -------------------------------------------------------------- */
.kpost-divider { border: none; border-top: 1px solid #252525; margin: 48px 0 36px; }

/* --- Post navigation (prev/next) ----------------------------------------- */
.kpost-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}
.kpost-nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color .2s;
}
.kpost-nav-item:hover { border-color: #D4AF3755; }
.kpost-nav-prev { align-items: flex-start; }
.kpost-nav-next { align-items: flex-end; text-align: right; }
.kpost-nav-label { font-size: .72rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.kpost-nav-ptitle { font-size: .88rem; color: #ccc; line-height: 1.35; }

/* --- Back link ------------------------------------------------------------ */
.kpost-back { text-align: center; }
.kpost-back-link {
    color: #D4AF37;
    text-decoration: none;
    font-size: .88rem;
    border-bottom: 1px solid #D4AF3744;
    padding-bottom: 2px;
}
.kpost-back-link:hover { border-bottom-color: #D4AF37; }

@media (max-width: 600px) {
    .kpost-nav { grid-template-columns: 1fr; }
    .kpost-nav-next { align-items: flex-start; text-align: left; }
}

/* ==========================================================================
   PÁGINAS LEGALES
   ========================================================================== */

/* Tabla de cookies */
.kinkoi-legal-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    color: #cccccc;
}
.kinkoi-legal-table th {
    background: #1e1e1e;
    color: #F9F6F0;
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border: 1px solid #333;
}
.kinkoi-legal-table td {
    padding: 9px 14px;
    border: 1px solid #2a2a2a;
    vertical-align: top;
    line-height: 1.6;
}
.kinkoi-legal-table tr:nth-child(even) td { background: #181818; }

/* Lista de navegadores */
.kinkoi-legal-list {
    color: #cccccc !important;
    line-height: 1.9 !important;
    padding-left: 1.4rem !important;
}
.kinkoi-legal-list a {
    color: #D4AF37 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Responsive: tabla con scroll horizontal en móvil */
@media (max-width: 680px) {
    .kinkoi-legal-table { overflow-x: auto; display: block; }
}

/* ==========================================================================
   RESPONSIVE GLOBAL — correcciones para móvil y tablet
   ========================================================================== */

/* ── Tablet (≤ 900px) ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {

    /* Eventos px-item: ocultar flecha decorativa para ganar espacio */
    .kinkoi-px-arrow { display: none; }

    /* Eventos px-item: reducir columna fecha */
    .kinkoi-px-item { grid-template-columns: 70px 1fr auto; }
}

/* ── Móvil (≤ 600px) ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {

    /* Título de sección más compacto */
    .kinkoi-section-title { letter-spacing: 1px !important; }

    /* Hero de single post: menos padding superior */
    .kpost-hero-inner { padding: 48px 18px 36px; }

    /* Meta del post: apilar verticalmente si es necesario */
    .kpost-meta { gap: 6px; font-size: .8rem; }
    .kpost-ig-chip { font-size: .72rem; padding: 3px 8px; }

    /* Tarjetas de pilares: desactivar hover translate en táctil */
    .kinkoi-card:hover { transform: none !important; }

    /* Anuncios banner: apilar texto y botón */
    .kinkoi-anuncios-banner-inner {
        flex-direction: column;
        gap: 12px;
    }

    /* Proximos eventos: quitar padding lateral excesivo */
    .kinkoi-proximos { padding-left: 10px; padding-right: 10px; }

    /* Heros de sección (cuaderno, tatami, anuncios) */
    .kcds-hero-inner { gap: 16px; }
    .kcds-hero-name  { font-size: 1.1rem; }
    .kcds-hero-bio   { font-size: .88rem; }

    /* Cookie banner: apilar texto y botón en pantallas muy pequeñas */
    #kinkoi-cookie-banner { flex-wrap: wrap !important; }
    #kinkoi-cookie-banner p { font-size: .8rem; }
    #kinkoi-cookie-ok { width: 100%; text-align: center; padding: 10px; }
}

/* =========================================================================
   EN Home (page 618) — transparent header / hero llega hasta arriba del todo
   Kadence no aplica el transparent header global a esta página (no es front-page
   en Settings > Reading), así que lo forzamos vía CSS.
   ========================================================================= */
.page-id-618 .site-header {
    position: absolute !important;
    width: 100% !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
.page-id-618 #inner-wrap,
.page-id-618 .site-content,
.page-id-618 #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
