/* ==========================================================================
   Kristian Transfers - Componentes globales: utilidades, cabecera de pagina,
   footer, banner de cookies, boton de WhatsApp.
   (La cabecera y la portada estan en header-hero.css y NO se modifican.)
   ========================================================================== */

/* ----------------------------------------------------------------- Utilidades */
.container--narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.btn-sm { padding: .5rem 1rem; font-size: .88rem; border-radius: 8px; }
.link-btn {
    background: none; border: 0; padding: .25rem 0; color: var(--accent-dark); font-weight: 700;
    font-size: .92rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--navy); }
.link-btn i { margin-right: .35rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 2.5rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }

/* ----------------------------------------------------------- Cabecera de pagina */
.page-head {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff; padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2rem, 4vw, 3rem);
    position: relative; overflow: hidden;
}
.page-head::after {
    content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(117, 199, 237, .28), transparent 70%); pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.15; margin: .5rem 0 .5rem; }
.page-head h1 i { color: var(--accent); margin-right: .5rem; font-size: .85em; }
.page-head p { color: rgba(255, 255, 255, .82); font-size: 1.08rem; max-width: 680px; }
.breadcrumb { font-size: .85rem; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb i { font-size: .6rem; margin: 0 .35rem; opacity: .7; }

/* ------------------------------------------------------------- WhatsApp flotante */
.whatsapp-float {
    position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 900; width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem; text-decoration: none; box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(37, 211, 102, .55); }
.whatsapp-tooltip {
    position: absolute; right: 70px; background: var(--navy); color: #fff; font-size: .82rem; padding: .45rem .75rem;
    border-radius: 8px; white-space: nowrap; opacity: 0; transform: translateX(8px); pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.whatsapp-float:hover .whatsapp-tooltip, .whatsapp-float:focus-visible .whatsapp-tooltip { opacity: 1; transform: none; }

/* ------------------------------------------------------------------------ Footer
   Estructura de varias columnas (tipo ROIG) con los colores de la web antigua:
   gris #6b7280, texto blanco, barra inferior azul marino. */
.footer { background: #6b7280; color: #fff; margin-top: 0; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; transition: opacity .2s; }
.footer a:hover { opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
.footer h2, .footer h3 { color: #fff; }

.footer-cta { background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue)); border-bottom: 3px solid var(--gold); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 2.25rem; padding-bottom: 2.25rem; flex-wrap: wrap; }
.footer-cta h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; font-family: 'Montserrat', 'Segoe UI', sans-serif; }
.footer-cta p { color: rgba(255, 255, 255, .92); margin-top: .25rem; }
.footer-cta a:hover { text-decoration: none; opacity: 1; }

.footer-main {
    display: grid; gap: 2.5rem 2rem; grid-template-columns: 1.5fr 1fr 1.3fr 1fr 1.4fr;
    padding-top: 3.5rem; padding-bottom: 2.5rem;
}
.footer-col h3 {
    font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #fff; margin-bottom: 1rem;
    padding-bottom: .5rem; border-bottom: 2px solid var(--gold); display: inline-block;
}
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col li { line-height: 1.4; }
.footer-contact i { width: 1.3rem; color: #fff; }
.footer-logo img { height: auto; width: 146px; }
.footer-tagline { margin: 1rem 0 1.25rem; max-width: 300px; color: rgba(255, 255, 255, .92); line-height: 1.6; }
.footer-social { display: flex !important; gap: .6rem !important; flex-wrap: wrap; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex;
    align-items: center; justify-content: center; font-size: 1.05rem; transition: background .2s, transform .2s;
}
.footer-social a:hover { background: var(--primary-blue); transform: translateY(-2px); text-decoration: none; opacity: 1; }
.footer-link-btn { background: none; border: 0; padding: 0; color: #fff; font-size: inherit; cursor: pointer; text-align: left; }
.footer-link-btn:hover { opacity: .8; text-decoration: underline; }

.footer-pay { border-top: 1px solid rgba(255, 255, 255, .3); }
.footer-pay-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-top: 1.5rem; padding-bottom: 1.5rem; flex-wrap: wrap; }
.payment-icons { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.payment-icon { height: 34px; width: 54px; display: block; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.payment-pill { height: 34px; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, .55); border-radius: 6px; padding: 0 .8rem; font-size: .8rem; font-weight: 600; display: inline-flex; gap: .45rem; align-items: center; }
.footer-langs { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-langs a { font-size: .85rem; }
.footer-langs a[aria-current="true"] { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom { background: var(--primary-blue); font-size: .82rem; color: rgba(255, 255, 255, .85); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; flex-wrap: wrap; }

/* ------------------------------------------------------------ Banner de cookies */
.cookie-banner {
    position: fixed; z-index: 10000; left: 12px; right: 12px; bottom: 12px; max-width: 920px; margin: 0 auto;
    background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 18px 60px rgba(7, 22, 47, .35);
    border: 1px solid var(--line); animation: toastIn .4s var(--ease);
}
.cookie-banner-inner { padding: 1.25rem 1.4rem; display: grid; gap: 1rem; }
.cookie-main h2 { font-size: 1.08rem; color: var(--navy); margin-bottom: .35rem; }
.cookie-main h2 i { color: var(--cta); margin-right: .35rem; }
.cookie-main p { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.cookie-main p a { color: var(--accent-dark); font-weight: 600; }
.cookie-prefs { display: grid; gap: .5rem; margin-top: 1rem; }
.cookie-pref {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .9rem;
    border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg);
}
.cookie-pref strong { display: block; font-size: .92rem; color: var(--navy); }
.cookie-pref small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.cookie-pref input { width: 22px; height: 22px; accent-color: var(--navy); flex: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.cookie-btn { border-radius: 10px; padding: .72rem 1.3rem; font-weight: 700; font-size: .92rem; border: 2px solid var(--navy); transition: all .2s; min-height: 44px; }
.cookie-btn-ghost { background: #fff; color: var(--navy); }
.cookie-btn-ghost:hover { background: var(--bg); }
/* Rechazar y Aceptar tienen el MISMO peso visual (requisito de consentimiento) */
.cookie-btn-accept { background: var(--navy); color: #fff; }
.cookie-btn-accept:hover { background: var(--navy-2); }
.cookie-fab {
    position: fixed; left: 14px; bottom: 14px; z-index: 880; width: 44px; height: 44px; border-radius: 50%;
    background: var(--navy); color: var(--cta-2); border: 0; box-shadow: var(--shadow); font-size: 1.1rem;
}
.cookie-fab:hover { background: var(--navy-2); }

/* ---------------------------------------------------------------- Mantenimiento */
.maintenance-body { background: var(--bg); min-height: 100vh; display: grid; place-items: center; font-family: var(--font); }
.maintenance { text-align: center; max-width: 520px; padding: 2rem; display: grid; gap: 1rem; justify-items: center; }
.maintenance h1 { color: var(--navy); }
.maintenance p { color: var(--muted); }

/* ----------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
    .footer-main { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .footer-main { grid-template-columns: 1fr 1fr; padding-top: 2.5rem; }
    .footer-contact { grid-column: 1 / -1; }
    .footer-cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .footer-cta .btn { width: 100%; text-align: center; }
    .whatsapp-float { width: 54px; height: 54px; bottom: 14px; right: 14px; }
    .whatsapp-tooltip { display: none; }
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; max-height: 92vh; overflow-y: auto; }
    .cookie-actions { flex-direction: column-reverse; }
    .cookie-btn { width: 100%; }
}
