/* =========================================================
   CECATI 106 — CAPA INSTITUCIONAL (aditiva)
   ---------------------------------------------------------
   Estilos para el contenido institucional añadido: avisos
   (callouts), notas aclaratorias, CTAs de sección, footer de
   contacto y botones "ghost" del hero.

   Se carga al final. 100% REVERSIBLE: quitar este archivo y su
   <link> deja el sitio como estaba. No pisa estilos existentes.
   ========================================================= */

/* ---------- Botón "ghost" (acciones secundarias del hero) ---------- */
.btn-ghost {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid rgba(196, 18, 48, 0.35);
    box-shadow: none;
}
.btn-ghost:hover {
    background: var(--primary-tint);
    border-color: var(--primary-red);
    box-shadow: none;
}

/* ---------- Filas de acciones (con salto de línea) ---------- */
.hero-actions { flex-wrap: wrap; }
.hero-actions-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}
.services-cta,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.services-cta { margin: 10px auto 0; max-width: 780px; }
.loc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

/* ---------- Aviso / callout (Requisitos) ---------- */
.callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto 28px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: var(--gold-tint);
    border-left: 5px solid var(--accent-gold);
    box-shadow: var(--shadow-sm);
}
.callout i { color: var(--primary-red); font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.callout p { margin: 0; color: var(--text-dark); }
.callout-warning { border-left-color: var(--primary-red); }

/* ---------- Notas aclaratorias de sección ---------- */
.section-note {
    max-width: 760px;
    margin: 26px auto 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.55;
}
.section-note i { color: var(--primary-red); margin-right: 4px; }
.section-note a { color: var(--primary-red); text-decoration: underline; font-weight: 600; }

/* ---------- Nota dentro de la tarjeta de descarga (Programación) ---------- */
.card-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-grey);
}

/* ---------- Footer: columna de contacto ---------- */
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    align-items: flex-start;
}
.footer-contact i { color: var(--accent-gold); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: inherit; word-break: break-word; }
.footer-contact a:hover { color: var(--accent-gold); }

/* ---------- Modo oscuro ---------- */
body.a11y-dark .callout { background: #2a2412; }
body.a11y-dark .callout p { color: #f0e6c8; }
body.a11y-dark .section-note,
body.a11y-dark .card-note { color: #bdbdbd; }
body.a11y-dark .btn-ghost { color: #ff8a98; border-color: rgba(255, 138, 152, 0.4); }
body.a11y-dark .btn-ghost:hover { background: #2a1416; }

/* ---------- Alto contraste ---------- */
body.a11y-contrast .callout {
    background: #000 !important;
    border: 2px solid #fff !important;
    border-left: 5px solid #ff0 !important;
}
body.a11y-contrast .callout p,
body.a11y-contrast .section-note,
body.a11y-contrast .card-note { color: #fff !important; }
body.a11y-contrast .callout i,
body.a11y-contrast .section-note i { color: #ff0 !important; }
body.a11y-contrast .section-note a { color: #ff0 !important; }
body.a11y-contrast .btn-ghost {
    background: #000 !important;
    color: #ff0 !important;
    border: 2px solid #ff0 !important;
}
body.a11y-contrast .footer-contact a { color: #ff0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .callout { margin-left: 16px; margin-right: 16px; }
    .services-cta .btn,
    .loc-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ---------- Enlace "volver arriba" del footer ---------- */
.footer-top-link {
    display: inline-block;
    margin: 8px 0;
    color: #cfcfcf;
    font-size: 0.85rem;
    font-weight: 600;
}
.footer-top-link:hover { color: var(--accent-gold); }
.footer-top-link i { margin-right: 6px; }
body.a11y-contrast .footer-top-link { color: #ff0 !important; }
