/* ================================
   LEGACY COMPATIBILITY
   Migrado desde assets/css/style.css.
   Variables CSS reemplazadas por hex hardcodeados
   para eliminar dependencia del antiguo :root.
   ================================ */

/* RESET BASE */
* { box-sizing: border-box; margin: 0; }

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #2C2118;
    background: #F8F4EF;
}

a { color: #9C2A1F; text-decoration: none; }
a:hover { color: #C44B3E; }

img { max-width: 100%; height: auto; }

/* LAYOUT */
.container { max-width: 100%; margin: 0 auto; padding: 0 4%; }

/* FILTROS (legacy, usado en archive-video.php) */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group label { font-size: 0.875rem; color: #5C534A; }
.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid #EDE6DB;
    border-radius: 6px;
    background: #F9F5F0;
}

/* GRID DE TARJETAS (legacy, usado en taxonomías y archives) */
.maestros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.maestros-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.maestros-grid.loading::after {
    content: 'Cargando...';
    position: absolute;
    top: 50%;
    left: 50%;
}

.maestro-card {
    background: #F9F5F0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(44,33,24,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.maestro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(44,33,24,0.15);
}
.maestro-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center 20%;
}
.maestro-card-content { padding: 1.5rem; }
.maestro-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.maestro-card .meta { color: #5C534A; font-size: 0.875rem; margin-bottom: 0.75rem; }
.maestro-card p { font-size: 0.9rem; color: #2C2118; }

.ver-biografia-btn {
    display: block;
    text-align: center;
    margin-top: 1rem;
}
.ver-biografia-btn:hover {
    border-color: var(--hi-accent);
    color: var(--hi-accent);
}

/* CITA DESTACADA (usado en single-cita.php) */
.frase-destacada {
    font-style: italic;
    font-size: 1.5rem;
    color: #2C2118;
    border-left: 4px solid #D4A017;
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* SIDEBAR (usado en single-linaje.php, single-cita.php, single-video.php) */
.sidebar-box {
    background: #F8F4EF;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-box h3 { font-size: 1rem; margin-bottom: 1rem; color: #2C2118; }
.sidebar-box ul { list-style: none; }
.sidebar-box li { padding: 0.5rem 0; border-bottom: 1px solid #EDE6DB; }

/* LISTADO DE TAXONOMÍAS (usado en taxonomy-*.php y archive-*.php) */
.taxonomy-list { padding: 3rem 0; }
.taxonomy-list h1 { margin-bottom: 2rem; }
.taxonomy-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.taxonomy-list li a {
    display: block;
    background: #F9F5F0;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(44,33,24,0.06);
}

/* RESPONSIVE LEGACY */
@media (max-width: 768px) {
    .maestros-grid { grid-template-columns: 1fr; }
    .filters { flex-direction: column; align-items: stretch; }
    .filter-group { width: 100%; }
    .filter-group select { width: 100%; }
    .maestro-card-content { padding: 1rem; }
    .frase-destacada { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .maestros-grid { grid-template-columns: 1fr; gap: 1rem; }
    .sidebar-box { padding: 1rem; }
}

