/* =========================================================
   CET Nº1 — HISTORIA (historia.html)
   Línea de tiempo, tarjetas de hito y callouts informativos.
   Depende de: css/global.css
   ========================================================= */
.history-content { max-width: 1080px; margin: 0 auto; }

.timeline {
    position: relative;
    padding: 20px 0 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    margin-bottom: 32px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--bg-color);
    color: var(--secondary-color);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 0 6px var(--bg-color), 0 6px 16px rgba(0, 52, 89, 0.15);
    font-weight: 800;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background: var(--secondary-color);
    color: var(--text-light);
    transform: scale(1.08);
    box-shadow: 0 0 0 6px var(--bg-color), 0 10px 24px rgba(0, 52, 89, 0.25);
}

.timeline-year {
    font-size: 1.05rem;
    line-height: 1;
    letter-spacing: -0.5px;
}

.timeline-range {
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0.3px;
}

.timeline-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.timeline-card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18px;
    height: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-card {
    grid-column: 1;
    text-align: right;
}
.timeline-item:nth-child(odd) .timeline-card::after {
    right: -18px;
}

.timeline-item:nth-child(even) .timeline-card {
    grid-column: 3;
    text-align: left;
}
.timeline-item:nth-child(even) .timeline-card::after {
    left: -18px;
}

.timeline-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.timeline-card h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.timeline-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.timeline-card strong { color: var(--text-color); font-weight: 600; }

.info-callout {
    margin-top: 48px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(0, 52, 89, 0.05), rgba(0, 168, 232, 0.06));
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.info-callout-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 52, 89, 0.18);
}

.info-callout-body { flex: 1; min-width: 0; }
.info-callout-body h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin: 0 0 10px;
    font-weight: 700;
}
.info-callout-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.96rem;
    margin: 0 0 8px;
}
.info-callout-body p:last-child { margin-bottom: 0; }
.info-callout-body strong { color: var(--text-color); font-weight: 600; }


/* =========================================================
   RESPONSIVE (historia)
   ========================================================= */
@media (max-width: 768px) {
    .timeline::before { left: 28px; }
    .timeline-item { grid-template-columns: 56px 1fr; gap: 0; }
    .timeline-marker { grid-column: 1; width: 56px; height: 56px; }
    .timeline-year { font-size: 0.85rem; }
    .timeline-range { font-size: 0.6rem; }
    .timeline-item:nth-child(odd) .timeline-card,
    .timeline-item:nth-child(even) .timeline-card { grid-column: 2; text-align: left; }
    .timeline-item:nth-child(odd) .timeline-card::after,
    .timeline-item:nth-child(even) .timeline-card::after { left: -18px; right: auto; }
    .info-callout { flex-direction: column; gap: 16px; padding: 22px; }
    .info-callout-icon { width: 48px; height: 48px; font-size: 1.3rem; }
}

/* =========================================================
   AJUSTES PROPIOS DE LA PÁGINA
   ========================================================= */

/* Espacio superior de la página (debajo de la navbar fija) */
.page-hero-offset { padding-top: 100px; }

/* Enlace dentro del recuadro informativo del comedor */
.info-callout-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.info-callout-link .icon { font-size: 0.75rem; }

