/* ============================================================
   El Bodegón — Servicios · Design system
   Marca: rojo #db0b14 · grises · Montserrat + Inter
   ============================================================ */

:root {
    --eb-red:        #db0b14;
    --eb-red-dark:   #a8090f;
    --eb-red-soft:   #fdeaeb;
    --eb-yellow:     #ffd200;
    --eb-yellow-dark:#f2b600;
    --eb-ink:        #1d1d1f;
    --eb-gray:       #6b6b6b;
    --eb-gray-2:     #8a8a8a;
    --eb-bg:         #f5f5f7;
    --eb-surface:    #ffffff;
    --eb-line:       #ececec;

    --eb-radius:     16px;
    --eb-radius-sm:  10px;
    --eb-shadow:     0 4px 24px rgba(219, 11, 20, 0.08);
    --eb-shadow-hover: 0 10px 30px rgba(219, 11, 20, 0.16);

    --eb-font-head:  'Montserrat', 'Segoe UI', Helvetica, Arial, sans-serif;
    --eb-font-body:  'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;

    --eb-ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

/* Foco visible y accesible en todo el sistema (WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--eb-red, #db0b14); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

body {
    margin: 0;
    font-family: var(--eb-font-body);
    color: var(--eb-ink);
    background: var(--eb-surface);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, .eb-main { flex: 1 0 auto; }

a { color: var(--eb-red); }

/* ── Hero compartido ───────────────────────────────────────── */
.eb-hero {
    background: linear-gradient(135deg, #b3070f 0%, var(--eb-red) 55%, #f0353d 100%);
    padding: 64px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.eb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.eb-hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.eb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-family: var(--eb-font-head);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}
.eb-hero-title {
    font-family: var(--eb-font-head);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.15;
}
.eb-hero-subtitle {
    font-family: var(--eb-font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Botón principal ───────────────────────────────────────── */
.eb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--eb-red), var(--eb-red-dark));
    color: #fff;
    font-family: var(--eb-font-head);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 13px 28px;
    border: none;
    border-radius: var(--eb-radius-sm);
    cursor: pointer;
    transition: transform 0.2s var(--eb-ease), box-shadow 0.2s var(--eb-ease);
    box-shadow: 0 4px 16px rgba(219, 11, 20, 0.28);
    letter-spacing: 0.02em;
    text-decoration: none;
}
.eb-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(219, 11, 20, 0.36); color: #fff; }
.eb-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.eb-back { text-align: center; margin: 40px 0; }
.eb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--eb-font-head);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--eb-red);
    text-decoration: none;
    padding: 10px 20px;
    border: 1.5px solid rgba(219, 11, 20, 0.25);
    border-radius: var(--eb-radius-sm);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.eb-back-link:hover { background: var(--eb-red-soft); border-color: var(--eb-red); transform: translateX(-3px); color: var(--eb-red); text-decoration: none; }

/* ── Encabezado de sección (estilo elbodegon.com.mx) ───────── */
.eb-section-head { text-align: center; margin: 0 auto 34px; max-width: 720px; padding: 0 20px; }
.eb-section-title {
    font-family: var(--eb-font-head);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--eb-ink);
    margin: 0;
    display: inline-block;
    padding-bottom: 12px;
    position: relative;
}
.eb-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--eb-red);
}
.eb-section-sub {
    font-family: var(--eb-font-body);
    font-size: 1rem;
    color: var(--eb-gray);
    margin: 14px auto 0;
    line-height: 1.6;
}

/* ── Encabezado de página interna (estilo elbodegon.com.mx) ──
   Reemplaza al hero degradado en vistas internas para unificar
   con el encabezado de sección del menú y del sitio real.       */
.eb-page-head {
    background: var(--eb-bg, #f5f5f7);
    border-bottom: 1px solid var(--eb-line, #ececec);
    padding: 50px 20px 42px;
    text-align: center;
}
.eb-page-head-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.eb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--eb-font-head, 'Montserrat', sans-serif);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--eb-red-dark, #a8090f); /* contraste AA 5.5:1 sobre el rosa suave */
    background: var(--eb-red-soft, #fdeaeb);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    animation: eb-fadeUp 0.4s ease both;
}
.eb-page-head .eb-section-title { animation: eb-fadeUp 0.5s ease both; }
.eb-page-head .eb-section-sub { animation: eb-fadeUp 0.6s ease both; }

@keyframes eb-fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Respeta la preferencia de movimiento reducido (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}


/* ── SweetAlert2 con la marca El Bodegón ───────────────────── */
.swal2-popup {
    border-radius: var(--eb-radius, 16px);
    font-family: var(--eb-font-body, 'Inter', sans-serif);
    padding-bottom: 24px;
    box-shadow: 0 24px 60px rgba(20, 20, 30, 0.22);
}
.swal2-title {
    font-family: var(--eb-font-head, 'Montserrat', sans-serif);
    font-weight: 800;
    color: var(--eb-ink, #1d1d1f);
    font-size: 1.3rem;
}
.swal2-html-container { font-family: var(--eb-font-body, 'Inter', sans-serif); color: var(--eb-gray, #6b6b6b); }
.swal2-actions { gap: 10px; }
.swal2-styled.swal2-confirm {
    background: linear-gradient(135deg, var(--eb-red, #db0b14), var(--eb-red-dark, #a8090f)) !important;
    border: none !important;
    border-radius: var(--eb-radius-sm, 10px) !important;
    font-family: var(--eb-font-head, 'Montserrat', sans-serif);
    font-weight: 700;
    padding: 11px 28px !important;
    box-shadow: 0 4px 14px rgba(219, 11, 20, 0.30) !important;
}
.swal2-styled.swal2-confirm:focus { box-shadow: 0 0 0 3px rgba(219, 11, 20, 0.30) !important; }
.swal2-styled.swal2-deny,
.swal2-styled.swal2-cancel {
    background: #fff !important;
    color: var(--eb-ink, #1d1d1f) !important;
    border: 1.5px solid var(--eb-line, #ececec) !important;
    border-radius: var(--eb-radius-sm, 10px) !important;
    font-family: var(--eb-font-head, 'Montserrat', sans-serif);
    font-weight: 700;
    padding: 11px 28px !important;
}
.swal2-styled.swal2-deny:hover,
.swal2-styled.swal2-cancel:hover { background: var(--eb-bg, #f5f5f7) !important; border-color: var(--eb-gray-2, #8a8a8a) !important; }
.swal2-icon.swal2-info,
.swal2-icon.swal2-question,
.swal2-icon.swal2-warning { border-color: var(--eb-red-soft, #fdeaeb); color: var(--eb-red, #db0b14); }

/* Resumen de datos (modal "Confirmar datos de envío") */
.fac-sum { text-align: left; max-width: 380px; margin: 6px auto 0; }
.fac-sum-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 2px;
    border-bottom: 1px solid var(--eb-line, #ececec);
}
.fac-sum-row:last-child { border-bottom: none; }
.fac-sum-k {
    font-family: var(--eb-font-head, 'Montserrat', sans-serif);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--eb-gray-2, #8a8a8a);
    flex-shrink: 0;
}
.fac-sum-v {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--eb-ink, #1d1d1f);
    text-align: right;
    word-break: break-word;
}
