/*
Theme Name:  Mentidero
Template:    twentytwentyfive
Description: Tema del Mentidero — venue teatral en Hermosillo, Sonora.
Version:     1.0.0
Author:      El Mentidero
*/

/* ── Google Fonts: Cormorant Garamond + Inter ─────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ── Hero teatral ────────────────────────────────────── */
.hero-teatral {
    background-image: radial-gradient(ellipse at 50% 40%, #1a1a1a 0%, #0d0d0d 70%) !important;
    background-color: #0d0d0d !important;
}

/* Separador decorativo — rojo, estrecho, centrado por defecto */
.hero-separador {
    border: none !important;
    height: 2px !important;
    background-color: var(--wp--preset--color--primary) !important;
    width: 56px !important;
    max-width: 56px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    opacity: 1 !important;
}

/* En columnas se alinea al texto */
.wp-block-column .hero-separador {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* ── Cartelera / Evento cards ────────────────────────── */

/* Grid — el Query Loop genera wp-block-post-template */
.eventos-grid.wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin-top: var(--wp--preset--spacing--40) !important;
    margin-bottom: 0 !important;
}

.evento-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
    border-color: #EA2027;
}

/* Poster */
.evento-card-imagen .wp-block-post-featured-image,
.evento-card .wp-block-post-featured-image {
    margin: 0;
}

.evento-card .wp-block-post-featured-image img {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.evento-card:hover .wp-block-post-featured-image img {
    transform: scale(1.04);
}

/* Sin imagen */
.evento-card .wp-block-post-featured-image:empty,
.evento-card .wp-block-post-featured-image a:empty {
    display: block;
    aspect-ratio: 9 / 16;
    background: #0d0d0d;
}

/* Cuerpo */
.evento-card-body {
    gap: 4px !important;
    padding-bottom: 1rem !important;
}

/* Tag de tipo (en cards) */
.evento-tipo-tag .wp-block-post-terms__separator { display: none; }

.evento-tipo-tag a {
    display: inline-block;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none !important;
    line-height: 1.5;
}

/* Colores por tipo */
.evento-tipo-tag a[href*="boleto"]        { background: #EA2027; color: #f0ece3 !important; }
.evento-tipo-tag a[href*="entrada-libre"] { background: #27AE60; color: #f0ece3 !important; }
.evento-tipo-tag a[href*="gratuito"]      { background: #27AE60; color: #f0ece3 !important; }
.evento-tipo-tag a[href*="reserva"]       { background: #C8A84B; color: #1a1a1a !important; }
/* Fallback para cualquier tipo no clasificado */
.evento-tipo-tag a { background: #57585B; color: #f0ece3 !important; }

/* Tag en el hero del single-evento */
.evento-tipo-tag--hero a {
    font-size: 0.72rem !important;
    padding: 5px 16px;
}

/* Título de la card */
.evento-card .wp-block-post-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.evento-card .wp-block-post-title a {
    color: #f0ece3 !important;
    text-decoration: none !important;
}

.evento-card .wp-block-post-title a:hover { color: #C8A84B !important; }

/* Extracto */
.evento-card .wp-block-post-excerpt p,
.evento-card .wp-block-post-excerpt__excerpt {
    font-size: 0.78rem !important;
    color: #A6A8AB !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.evento-card .wp-block-post-excerpt__more-link { display: none !important; }

/* Botón CTA */
.evento-card-btn,
.evento-card-btn.wp-block-read-more {
    display: block !important;
    text-align: center !important;
    background: #EA2027 !important;
    color: #f0ece3 !important;
    text-decoration: none !important;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 0.75rem 1rem !important;
    border-radius: 2px !important;
    margin-top: auto !important;
    transition: background 0.18s ease !important;
}

.evento-card-btn:hover { background: #c5151b !important; color: #f0ece3 !important; }

/* Responsive */
@media (max-width: 1100px) {
    .eventos-grid.wp-block-post-template { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    .eventos-grid.wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
    .evento-card .wp-block-post-title    { font-size: 1rem !important; }
    .evento-card .wp-block-post-excerpt  { display: none !important; }
}

@media (max-width: 480px) {
    .eventos-grid.wp-block-post-template { grid-template-columns: 1fr !important; }
}

/* ── Footer ──────────────────────────────────────────── */

.footer-nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav-list li::before {
    display: none !important;
}

.footer-nav-list a:hover {
    color: #f0ece3 !important;
}

/* Footer responsive */
@media (max-width: 768px) {
    footer .wp-block-columns {
        flex-direction: column !important;
    }
    footer .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }
}

/* ── Neutralizar textos oscuros heredados del parent ─── */

/*
 * TwentyTwentyfive fija color: #111111 en body y algunos bloques.
 * Aquí sobreescribimos cualquier texto que no tenga contraste
 * suficiente sobre los fondos oscuros del sitio.
 */

/* Body y contenedores raíz */
body,
.wp-site-blocks,
.entry-content,
.wp-block-post-content {
    color: #f0ece3;
}

/* Cualquier texto gris oscuro (#111, #333, #444, #555) sobre fondo oscuro */
.wp-block-paragraph,
.wp-block-list,
.wp-block-list-item,
.wp-block-heading {
    color: inherit;
}

/* Meta de posts (fecha, autor, términos) */
.wp-block-post-date,
.wp-block-post-date a,
.wp-block-post-author__name,
.wp-block-post-terms,
.wp-block-post-terms a {
    color: #A6A8AB;
}

/* Extracto de posts */
.wp-block-post-excerpt__excerpt,
.wp-block-post-excerpt p {
    color: #A6A8AB;
}

/* Comentarios */
.wp-block-comment-author-name,
.wp-block-comment-content,
.wp-block-comment-date {
    color: #A6A8AB;
}

/* Separadores */
.wp-block-separator:not(.has-background):not(.hero-separador) {
    border-color: #2a2a2a;
    opacity: 1;
}

/* Inputs y formularios — fondo oscuro, texto claro */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="password"],
textarea,
select {
    background-color: #1a1a1a;
    color: #f0ece3;
    border-color: #2a2a2a;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: #57585B;
}

/* Submenús de navegación */
.wp-block-navigation .wp-block-navigation__submenu-container {
    background-color: #221F1F;
    color: #f0ece3;
}

.wp-block-navigation .wp-block-navigation__submenu-container a {
    color: #A6A8AB;
}

.wp-block-navigation .wp-block-navigation__submenu-container a:hover {
    color: #f0ece3;
}

/* ── Botón de cartelera ──────────────────────────────── */
.wp-block-button__link.wp-element-button {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background-color 0.18s ease, transform 0.15s ease;
}

.wp-block-button__link.wp-element-button:hover {
    transform: translateY(-1px);
}
