/* Página del Terri Food Day (web/informativo/terrifoodday.aspx). Colores tomados del afiche y del programa. */

/* portada: mismo crema del afiche para que el logo recortado se integre */
.tfd-portada { background-color: #feebda; padding: 2.5rem 0; }
.tfd-logo { max-width: 540px; width: 100%; }
.tfd-lema { color: #25553f; font-size: 1.2rem; font-weight: 600; margin: 1rem 0; }
.tfd-datos { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tfd-datos li { color: #25553f; font-size: 1rem; margin-bottom: .35rem; }
.tfd-datos i { width: 1.5rem; color: #b75b08; text-align: center; }
.tfd-btn { border: 2px solid #25553f; color: #25553f; background: #fff; font-weight: 600; padding: .6rem 1.3rem; margin: .25rem; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.tfd-btn:hover, .tfd-btn:focus { background: #25553f; color: #fff; transform: translateY(-2px); }
.tfd-btn-lleno { background: #25553f; color: #fff; }
.tfd-btn-lleno:hover, .tfd-btn-lleno:focus { background: #1b3f2f; }
.tfd-flyer { max-height: 520px; border-radius: 12px; box-shadow: 0 14px 34px rgba(37, 85, 63, .28); transition: transform .3s ease; }
.tfd-flyer:hover { transform: scale(1.02); }

.tfd-bloque { margin-top: 2rem; margin-bottom: 1rem; }

/* tarjetas de datos */
.tfd-card { height: 100%; background: #fff; border-radius: 10px; border-top: 4px solid #4c8c57; padding: 1.25rem; text-align: center; box-shadow: 0 4px 16px rgba(37, 85, 63, .14); transition: transform .25s ease, box-shadow .25s ease; }
.tfd-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(37, 85, 63, .24); }
.tfd-card i { font-size: 1.6rem; color: #4c8c57; margin-bottom: .5rem; }
.tfd-card h3 { font-size: 1.1rem; font-weight: 700; color: #25553f; margin-bottom: .35rem; }
.tfd-card p { margin: 0; font-size: .95rem; }

/* colores por sección */
.tfd-verde { --tfd-color: #25553f; --tfd-suave: #eef5f0; }
.tfd-azul { --tfd-color: #19627f; --tfd-suave: #ecf5f8; }
.tfd-oliva { --tfd-color: #3f6b1f; --tfd-suave: #f1f7ea; }
.tfd-naranja { --tfd-color: #a95207; --tfd-suave: #fdf3ea; }
.tfd-tierra { --tfd-color: #8a3b1e; --tfd-suave: #faefea; }

/* programa */
.tfd-titulo { text-align: center; color: #25553f; font-weight: 800; font-size: 2.2rem; margin-bottom: 1.25rem; }

/* pestañas: tarjetas con icono, nombre y horario (sin .btn para que el tema no pise el estado activo) */
.tfd-tabs { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: .75rem; gap: .75rem; margin-bottom: 2rem; }
.tfd-tabs .nav-item { display: flex; }
.tfd-tabs .tfd-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; text-align: center; text-decoration: none; padding: 1rem .5rem; border-radius: 14px; background: #fff; color: var(--tfd-color); border: 2px solid transparent; box-shadow: 0 4px 14px rgba(0, 0, 0, .09); transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease; }
.tfd-tabs .tfd-tab i { font-size: 1.7rem; margin-bottom: .45rem; transition: transform .3s ease; }
.tfd-tab-nombre { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.tfd-tab-hora { font-size: .85rem; opacity: .85; margin-top: .25rem; }
.tfd-tabs .tfd-tab:hover, .tfd-tabs .tfd-tab:focus { color: var(--tfd-color); background: var(--tfd-suave); border-color: var(--tfd-color); transform: translateY(-4px); }
.tfd-tabs .tfd-tab:hover i { transform: scale(1.18) rotate(-8deg); }
.tfd-tabs .tfd-tab.active, .tfd-tabs .tfd-tab.active:hover, .tfd-tabs .tfd-tab.active:focus { background: var(--tfd-color); border-color: var(--tfd-color); color: #fff; transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .22); }
.tfd-tabs .tfd-tab:focus-visible { outline: 3px solid #f2a93b; outline-offset: 3px; }

/* contenido */
.tfd-sec { margin-bottom: 2.25rem; }
.tfd-sec h3 { color: var(--tfd-color); font-size: 1.7rem; font-weight: 800; line-height: 1.25; border-bottom: 4px solid var(--tfd-color); padding-bottom: .65rem; margin-bottom: 1rem; }
.tfd-desc { font-size: 1.1rem; line-height: 1.7; color: #333; background: var(--tfd-suave); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.tfd-sub { color: var(--tfd-color); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.25rem; }

/* agenda en línea de tiempo */
.tfd-agenda { list-style: none; padding: 0 0 0 1.75rem; margin: 0; position: relative; }
.tfd-agenda::before { content: ""; position: absolute; left: 6px; top: .5rem; bottom: .5rem; width: 3px; background: var(--tfd-color); opacity: .25; border-radius: 3px; }
.tfd-agenda li { position: relative; display: flex; margin-bottom: 1rem; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .09); transition: transform .25s ease, box-shadow .25s ease; }
.tfd-agenda li::before { content: ""; position: absolute; left: -1.75rem; top: 50%; width: 15px; height: 15px; margin-top: -7px; border-radius: 50%; background: #fff; border: 4px solid var(--tfd-color); }
.tfd-agenda li:hover { transform: translateX(6px); box-shadow: 0 10px 26px rgba(0, 0, 0, .15); }
.tfd-hora { flex: 0 0 170px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem .5rem; background: var(--tfd-color); color: #fff; font-weight: 800; font-size: 1.15rem; border-radius: 14px 0 0 14px; }
.tfd-info { flex: 1; padding: 1.1rem 1.35rem; background: var(--tfd-suave); border-radius: 0 14px 14px 0; }
.tfd-info h4 { color: var(--tfd-color); font-size: 1.25rem; font-weight: 800; line-height: 1.35; text-transform: none; margin: 0; }
.tfd-info p { margin: .5rem 0 0; font-size: 1.05rem; line-height: 1.6; color: #2b2b2b; }

/* entrada: se repite cada vez que se abre una pestaña */
@keyframes tfd-entra { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.tab-pane.active .tfd-sec h3, .tab-pane.active .tfd-desc, .tab-pane.active .tfd-sub { animation: tfd-entra .45s ease backwards; }
.tab-pane.active .tfd-agenda li { animation: tfd-entra .5s ease backwards; }
.tab-pane.active .tfd-agenda li:nth-child(1) { animation-delay: .08s; }
.tab-pane.active .tfd-agenda li:nth-child(2) { animation-delay: .16s; }
.tab-pane.active .tfd-agenda li:nth-child(3) { animation-delay: .24s; }
.tab-pane.active .tfd-agenda li:nth-child(4) { animation-delay: .32s; }
.tab-pane.active .tfd-agenda li:nth-child(5) { animation-delay: .40s; }
.tab-pane.active .tfd-agenda li:nth-child(6) { animation-delay: .48s; }
.tab-pane.active .tfd-agenda li:nth-child(n+7) { animation-delay: .56s; }

@media (max-width: 991.98px) {
    .tfd-tabs { grid-template-columns: repeat(2, 1fr); }
    .tfd-tabs .nav-item:last-child { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .tfd-agenda { padding-left: 0; }
    .tfd-agenda::before, .tfd-agenda li::before { display: none; }
    .tfd-agenda li { flex-direction: column; }
    .tfd-hora { flex: 0 0 auto; padding: .6rem; border-radius: 14px 14px 0 0; }
    .tfd-info { border-radius: 0 0 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .tfd-btn, .tfd-flyer, .tfd-card, .tfd-agenda li, .tfd-tabs .tfd-tab, .tfd-tabs .tfd-tab i { transition: none; }
    .tab-pane.active * { animation: none !important; }
    .tfd-btn:hover, .tfd-flyer:hover, .tfd-card:hover, .tfd-agenda li:hover, .tfd-tabs .tfd-tab:hover { transform: none; }
}
