/* ==========================================================================
   Agenda Cultural - Estilos
   ========================================================================== */

/* Hero */
.agenda-hero {
    text-align: center;
    padding: 40px 20px 32px;
    margin-bottom: 20px;
}
.agenda-hero h1 {
    font-size: 2.2rem;
    font-family: "Palatino Linotype", "Garamond", serif;
    color: #E5D9C5;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
    font-weight: 400;
}
.agenda-hero > p {
    color: rgba(229, 217, 197, 0.45);
    font-size: 1rem;
    font-family: "Palatino Linotype", "Garamond", serif;
    margin: 0 0 32px 0;
}
.agenda-hero .hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.agenda-hero .hero-stat {
    text-align: center;
    padding: 0 28px;
    border-right: 1px solid rgba(176, 140, 62, 0.15);
}
.agenda-hero .hero-stat:last-child { border-right: none; }
.agenda-hero .hero-stat__number {
    font-size: 1.6rem;
    font-weight: 400;
    font-family: "Palatino Linotype", "Garamond", serif;
    color: var(--cobre, #B08C3E);
    line-height: 1;
    margin-bottom: 4px;
}
.agenda-hero .hero-stat__label {
    font-size: 0.7rem;
    color: rgba(229, 217, 197, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* Filtros */
.agenda-filtros {
    padding: 0 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.agenda-filtro-grupo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agenda-filtro-label {
    font-size: 0.75rem;
    color: rgba(229, 217, 197, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.agenda-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(253, 251, 247, 0.03);
    border: 1px solid rgba(176, 140, 62, 0.15);
    border-radius: 4px;
    color: #E5D9C5;
    font-size: 0.85rem;
    font-family: "Palatino Linotype", "Garamond", serif;
    padding: 6px 28px 6px 10px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23B08C3E' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.agenda-select:focus {
    border-color: var(--cobre, #B08C3E);
}
.agenda-select option {
    background: #0F2A22;
    color: #E5D9C5;
}

.agenda-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(176, 140, 62, 0.15);
    background: transparent;
    color: rgba(229, 217, 197, 0.5);
}
.agenda-chip:hover {
    border-color: rgba(176, 140, 62, 0.3);
    color: #E5D9C5;
}
.agenda-chip--active {
    background: rgba(176, 140, 62, 0.15);
    border-color: rgba(176, 140, 62, 0.3);
    color: var(--cobre, #B08C3E);
}

/* Listado de eventos */
.agenda-grid-section {
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.agenda-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.agenda-grid-header h2 {
    font-size: 1.3rem;
    font-family: "Palatino Linotype", "Garamond", serif;
    color: #E5D9C5;
    margin: 0;
    font-weight: 400;
}
.agenda-grid-header .section-count {
    color: rgba(176, 140, 62, 0.45);
    font-size: 0.8rem;
}

.agenda-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Card de evento - estilo listado */
.agenda-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 16px 24px;
    background: rgba(253, 251, 247, 0.02);
    border: none;
    border-bottom: 1px solid rgba(176, 140, 62, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.agenda-card:first-child {
    border-top: 1px solid rgba(176, 140, 62, 0.1);
}
.agenda-card:hover {
    background: rgba(176, 140, 62, 0.06);
}
.agenda-card:hover .agenda-card__titulo {
    color: var(--cobre-electrico, #D4A843);
}

/* Indicador lateral de categoria */
.agenda-card__indicator {
    width: 3px;
    height: 100%;
    min-height: 50px;
    border-radius: 2px;
    align-self: stretch;
}
.agenda-card__indicator--exposicion {
    background: linear-gradient(180deg, var(--cobre, #B08C3E) 0%, rgba(176, 140, 62, 0.3) 100%);
}
.agenda-card__indicator--teatro,
.agenda-card__indicator--danza {
    background: linear-gradient(180deg, #c27ba0 0%, rgba(194, 123, 160, 0.3) 100%);
}
.agenda-card__indicator--musica,
.agenda-card__indicator--festival {
    background: linear-gradient(180deg, #6fa8dc 0%, rgba(111, 168, 220, 0.3) 100%);
}
.agenda-card__indicator--cine {
    background: linear-gradient(180deg, #e06666 0%, rgba(224, 102, 102, 0.3) 100%);
}
.agenda-card__indicator--taller,
.agenda-card__indicator--conferencia {
    background: linear-gradient(180deg, #93c47d 0%, rgba(147, 196, 125, 0.3) 100%);
}
.agenda-card__indicator--visita_guiada {
    background: linear-gradient(180deg, #f6b26b 0%, rgba(246, 178, 107, 0.3) 100%);
}
.agenda-card__indicator--otro {
    background: linear-gradient(180deg, #5a8f7b 0%, rgba(90, 143, 123, 0.3) 100%);
}

/* Contenido principal */
.agenda-card__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

/* Badges */
.agenda-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.agenda-card__badge-cat {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(176, 140, 62, 0.15);
    color: var(--cobre, #B08C3E);
}

.agenda-card__badge-gratis {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(120, 170, 120, 0.12);
    border: 1px solid rgba(120, 170, 120, 0.25);
    color: #8cb88c;
}

.agenda-card__titulo {
    font-family: "Palatino Linotype", "Garamond", serif;
    font-size: 1.05rem;
    color: #E5D9C5;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

/* Lugar - estilo cita como autor en biblioteca */
.agenda-card__lugar {
    font-family: "Palatino Linotype", "Garamond", serif;
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(253, 251, 247, 0.7);
    margin: 0;
}

/* Metadatos en fila */
.agenda-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.agenda-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: rgba(253, 251, 247, 0.5);
}
.agenda-card__meta-item svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    stroke: var(--cobre, #B08C3E);
    fill: none;
    stroke-width: 1.5;
    opacity: 0.6;
}

.agenda-card__meta-separator {
    color: rgba(176, 140, 62, 0.4);
    font-size: 0.6rem;
}

.agenda-card__precio {
    font-size: 0.75rem;
    color: var(--cobre, #B08C3E);
    font-weight: 600;
}

/* Acciones a la derecha */
.agenda-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.agenda-card:hover .agenda-card__actions {
    opacity: 1;
}
.agenda-card__link-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid rgba(176, 140, 62, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.agenda-card__link-btn:hover {
    background: rgba(176, 140, 62, 0.15);
    border-color: var(--cobre, #B08C3E);
}
.agenda-card__link-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--cobre, #B08C3E);
    fill: none;
    stroke-width: 2;
}

/* Estado vacio */
.agenda-vacio {
    text-align: center;
    padding: 60px 20px;
}
.agenda-vacio svg {
    width: 48px;
    height: 48px;
    color: rgba(176, 140, 62, 0.2);
    stroke-width: 1.5;
    fill: none;
    stroke: currentColor;
    margin-bottom: 16px;
}
.agenda-vacio h3 {
    font-family: "Palatino Linotype", "Garamond", serif;
    font-size: 1.1rem;
    color: #E5D9C5;
    margin: 0 0 8px 0;
    font-weight: 400;
}
.agenda-vacio p {
    color: rgba(229, 217, 197, 0.4);
    font-size: 0.9rem;
    margin: 0;
}

/* Cargando */
.agenda-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(229, 217, 197, 0.4);
    font-size: 0.9rem;
}

/* Paginacion */
.agenda-paginacion {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
.agenda-paginacion button {
    padding: 6px 14px;
    border: 1px solid rgba(176, 140, 62, 0.15);
    border-radius: 4px;
    background: transparent;
    color: rgba(229, 217, 197, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.agenda-paginacion button:hover:not(:disabled) {
    border-color: var(--cobre, #B08C3E);
    color: #E5D9C5;
}
.agenda-paginacion button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.agenda-paginacion .pag-info {
    display: flex;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(229, 217, 197, 0.35);
}

/* Separador */
.agenda-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px auto;
    max-width: 1200px;
    padding: 0 20px;
}
.agenda-divider__line {
    flex: 1;
    height: 1px;
    background: rgba(176, 140, 62, 0.12);
}
.agenda-divider__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(176, 140, 62, 0.4);
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .agenda-hero h1 { font-size: 1.8rem; }
    .agenda-hero .hero-stats { flex-wrap: wrap; }
    .agenda-hero .hero-stat { padding: 0 18px; }
    .agenda-filtros { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .agenda-card {
        grid-template-columns: auto 1fr;
        padding: 12px 16px;
    }
    .agenda-card__actions {
        display: none;
    }
    .agenda-card__titulo {
        font-size: 0.95rem;
    }
    .agenda-card__lugar {
        font-size: 0.85rem;
    }
}
@media (max-width: 480px) {
    .agenda-hero h1 { font-size: 1.5rem; }
}
