/* MySub — estilos del sitio público (sobre Bootstrap 5.3) */
:root {
  --brand: #D4471B;
  --brand-dark: #B83A12;
  --brand-soft: #F6DCD3;
  --leaf: #2F7A2F;
  --sun: #FFB703;
  --gold: #FFC94A;
  --ink: #1F1A17;
  --muted: #57534E;
  --bg: #FFF4F1;
  --card-shadow: 0 10px 26px rgba(120, 40, 10, .08);
  --radius: 10px;
  --bs-body-font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-link-color-rgb: 184, 58, 18;
  --bs-link-hover-color-rgb: 140, 40, 10;
}

body { background: var(--bg); color: var(--ink); }
h1, h2, h3, .font-display { font-family: Poppins, sans-serif; }
a { color: var(--brand-dark); }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 6px; }
.text-brand { color: var(--brand); }
.text-brand-dark { color: var(--brand-dark); }
.text-leaf { color: var(--leaf); }
.text-muted-2 { color: var(--muted) !important; }
.ls-wide { letter-spacing: .04em; }
.border-top-soft { border-top: 1px solid #F6E6E0; }

/* Barra superior y navegación */
.topbar { background: #fff; border-bottom: 1px solid var(--brand-soft); font-size: .82rem; color: var(--muted); padding: .35rem 0; }
.topbar a { color: var(--ink); display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; }
.topbar a:hover { background: var(--bg); color: var(--brand); }
.site-header { background: var(--brand); position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 10px rgba(120, 40, 10, .15); }
.site-header .navbar { padding: .6rem 0; }
.brand-word { font: 800 1.9rem/1 Poppins, sans-serif; letter-spacing: -.02em; color: #fff !important; }
.brand-a { color: var(--gold); }
.brand-word-dark { color: var(--ink) !important; font-size: 1.7rem; }
.brand-a-dark { color: var(--brand); }
.site-header .nav-link { color: #fff !important; font-weight: 600; font-size: .95rem; padding: .6rem .9rem !important; border-bottom: 2px solid transparent; }
.site-header .nav-link:hover { color: var(--gold) !important; }
.site-header .nav-link.active { border-bottom-color: var(--gold); }
.site-header .navbar-toggler { border-color: rgba(255, 255, 255, .5); }
.btn-nav { color: var(--brand-dark) !important; font-weight: 700; font-size: .9rem; border-radius: 6px; }
@media (max-width: 991.98px) {
  .site-header .navbar-collapse { padding: .75rem 0 1rem; }
  .site-header .nav-link { border-bottom: 0; border-left: 3px solid transparent; }
  .site-header .nav-link.active { border-left-color: var(--gold); }
  .btn-nav { margin-top: .5rem; }
}

/* Botones */
.btn-brand { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); font-weight: 700; border-radius: 6px; }
.btn-outline-brand { --bs-btn-color: var(--brand-dark); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-color: #fff; font-weight: 700; border-width: 2px; border-radius: 6px; }
.btn-lg { font-size: 1rem; padding: .85rem 1.75rem; }
.btn-shadow { box-shadow: 0 8px 18px rgba(212, 71, 27, .28); }
.link-brand { color: var(--brand-dark); }

/* Buscador */
.search-box { display: flex; max-width: 440px; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 18px rgba(212, 71, 27, .12); background: #fff; }
.search-box input { flex: 1; border: 0; padding: .85rem 1rem; font-size: .95rem; min-width: 0; outline: none; }
.search-box input:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); }
.search-box button { width: 52px; border: 0; background: var(--brand); color: #fff; font-size: 1.15rem; }
.search-box button:hover { background: var(--brand-dark); }

/* Portada */
.hero-title { font: 700 clamp(2.4rem, 5.2vw, 4rem)/1.08 Poppins, sans-serif; letter-spacing: -.02em; margin: .5rem 0 1.25rem; }
.hero-lead { font-size: 1.1rem; line-height: 1.6; color: var(--muted); max-width: 520px; margin-bottom: 1.75rem; }
.plate { width: min(460px, 100%); aspect-ratio: 1; border-radius: 50%; border: 14px solid #fff; overflow: hidden; box-shadow: 0 24px 50px rgba(120, 40, 10, .18); background: var(--brand-soft); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate-sm { width: min(380px, 100%); border-width: 12px; box-shadow: 0 20px 40px rgba(92, 58, 0, .25); }

/* Tarjetas y secciones */
.card-soft { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); }
.eyebrow { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.eyebrow-dark { color: #5C3A00; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.section-title { font: 700 clamp(1.7rem, 3vw, 2.15rem)/1.15 Poppins, sans-serif; margin: 0; }
.display-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-lead { max-width: 560px; }
.page-head { padding: 3rem 0 2rem; }

.benefits { padding: 1.75rem 2rem; }
.benefit-icon { font-size: 2.4rem; color: var(--ink); line-height: 1; }
.benefit-icon-img { width: 48px; height: 48px; object-fit: contain; }
.benefit-title { font: 700 .95rem Poppins, sans-serif; }

.cat-card { padding: .75rem .75rem 1rem; display: flex; flex-direction: column; gap: .75rem; }
.cat-img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; background: var(--brand-soft); }
.cat-name { font: 700 1.05rem Poppins, sans-serif; margin: 0 .25rem; }
.cat-card > div { padding: 0 .25rem; }
.arrow-btn { flex: none; width: 40px; height: 40px; border-radius: 6px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.arrow-btn:hover { background: var(--brand-dark); color: #fff; }

.stat { padding: 1.25rem; display: flex; flex-direction: column; gap: .25rem; }
.stat-n { font: 800 2.25rem/1 Poppins, sans-serif; color: var(--brand); }
.stat-t { font-weight: 600; }

.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-img { width: 100%; height: 200px; object-fit: cover; background: var(--brand-soft); display: block; }
.product-name { font: 700 1.2rem/1.2 Poppins, sans-serif; }
.product-name a { color: var(--ink); text-decoration: none; }
.product-name a:hover { color: var(--brand); }
.price-list { color: var(--muted); }
.price-list strong { color: var(--ink); }
.tag { font-size: .75rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; }
.tag-green { background: #E4F2E1; color: #245F25; }
.tag-tico { background: #E4F2E1; color: #245F25; }
.tag-hot { background: #FBE3DA; color: #9A2C16; }
.tag-new { background: #FFF1C9; color: #6B4A00; }

.promo { background: var(--sun); border-radius: 14px; padding: clamp(1.75rem, 4vw, 3rem); overflow: hidden; }
.promo-title { font: 600 clamp(2rem, 4vw, 2.9rem)/1.12 Poppins, sans-serif; margin: .25rem 0 1rem; }
.promo-price { font: 700 1.35rem Poppins, sans-serif; color: #A3300C; }

.team-img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius); background: var(--brand-soft); }
.review { padding: 1.25rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.stars { color: var(--brand); font-size: 1.75rem; display: flex; gap: .25rem; justify-content: center; }

/* Menú */
.pill-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { padding: .55rem 1.1rem; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; box-shadow: 0 2px 8px rgba(120, 40, 10, .06); }
.pill:hover { color: var(--brand); }
.pill.active { background: var(--brand); color: #fff; }
.pill-outline { background: transparent; border: 2px solid var(--brand); color: var(--brand-dark); box-shadow: none; }

/* Detalle */
.detail-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: var(--card-shadow); background: var(--brand-soft); }
.price-big { font: 800 1.9rem/1.1 Poppins, sans-serif; color: var(--brand-dark); }
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.25rem; margin: 0; }
.detail-list dt { color: var(--muted); font-weight: 600; }
.detail-list dd { margin: 0; }
.allergen { font-size: .78rem; font-weight: 600; color: #8F3A12; }

/* Arma tu Sub */
.steps { display: flex; flex-wrap: wrap; gap: .5rem; }
.step { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem .4rem .4rem; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.step span { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.step:hover { color: var(--brand); }
.step-title { font: 700 1.35rem Poppins, sans-serif; }
.builder-step { scroll-margin-top: 90px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-body { display: flex; border-radius: 12px; background: #fff; border: 2px solid var(--brand-soft); transition: border-color .15s, box-shadow .15s; }
.opt input:focus-visible + .opt-body { outline: 3px solid rgba(212, 71, 27, .45); outline-offset: 2px; }
.opt input:checked + .opt-body { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(212, 71, 27, .14); }
.opt-size .opt-body { flex-direction: column; gap: .25rem; padding: 1rem 1.25rem; min-width: 160px; }
.opt-size-n { font: 800 1.5rem/1 Poppins, sans-serif; }
.opt-card { display: block; width: 100%; }
.opt-card .opt-body { flex-direction: column; gap: .4rem; padding: .6rem .6rem .9rem; height: 100%; position: relative; }
.opt-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; background: var(--brand-soft); }
.opt-check { position: absolute; top: 14px; right: 14px; font-size: 1.6rem; color: var(--brand); background: #fff; border-radius: 50%; line-height: 1; display: none; }
.opt input:checked + .opt-body .opt-check { display: block; }
.opt-chip .opt-body { padding: .55rem 1rem; min-height: 44px; align-items: center; gap: .3rem; font-weight: 600; font-size: .9rem; background: #FFF9F7; border-width: 1.5px; border-color: #EBC9BC; border-radius: 999px; }
.opt-chip input:checked + .opt-body { background: var(--leaf); border-color: var(--leaf); color: #fff; box-shadow: none; }
.opt-chip small { font-weight: 500; opacity: .8; }
.opt input:disabled + .opt-body { opacity: .45; cursor: not-allowed; }
.summary { padding: 1.5rem; }
.summary-list { margin: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; }
.summary-list > div { display: flex; justify-content: space-between; gap: 1rem; }
.summary-list dt { color: var(--muted); font-weight: 500; }
.summary-list dd { margin: 0; font-weight: 600; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #F6E6E0; margin-top: 1rem; padding-top: 1rem; }
.summary-total strong { font: 800 1.7rem Poppins, sans-serif; }
@media (min-width: 992px) { .sticky-lg { position: sticky; top: 96px; } }

/* Ubicación */
.map-wrap { border-radius: 14px; overflow: hidden; min-height: 380px; height: 100%; box-shadow: var(--card-shadow); background: var(--brand-soft); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; color: #7A3B22; }

.table-allergens th { background: #FFF9F7; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .9rem 1.25rem; }
.table-allergens td { padding: .8rem 1.25rem; }

/* Pie */
.site-footer { background: #fff; border-top: 1px solid var(--brand-soft); margin-top: 3rem; font-size: .92rem; color: var(--muted); }
.footer-title { font: 700 .95rem Inter, sans-serif; color: var(--ink); margin-bottom: .75rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a, .site-footer a { color: var(--muted); }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid #F6E6E0; padding: 1rem 0 1.5rem; font-size: .85rem; }
