/* Prieto's Catering: colores tomados del logo */
:root {
  --red: #d3151d;
  --red-dark: #a80f16;
  --blue: #1b5fc1;
  --blue-dark: #134a99;
  --sky: #dbe9fb;
  --ink: #161616;
  --muted: #5d5d5d;
  --line: #e7e2da;
  --bg: #ffffff;
  --cream: #fbf7f1;
  --green: #1fa855;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 16px/1.6 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: var(--red); margin: 0 0 .5rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem "Poppins", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-white { background: #fff; color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.btn-block { width: 100%; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--red); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-actions .btn { padding: .55rem 1rem; font-size: .95rem; }
.lang { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .4rem .6rem; font: 600 .85rem "Poppins", sans-serif; cursor: pointer; }

/* Hero */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(100deg, rgba(10,22,48,.92) 0%, rgba(10,22,48,.78) 45%, rgba(10,22,48,.45) 100%), url("images/evento-food-truck-1.jpg") center/cover no-repeat;
  padding: 56px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.hero .eyebrow { color: #ffcf4d; }
.hero .lead { font-size: 1.12rem; color: #eef2fb; max-width: 560px; }
.checks { list-style: none; padding: 0; margin: 1rem 0; }
.checks li { padding-left: 1.8rem; position: relative; margin-bottom: .45rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--red); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.hero-badges { display: flex; align-items: center; gap: 12px; margin-top: 1.4rem; flex-wrap: wrap; }
.hero-badges img { width: 72px; height: auto; border-radius: 50%; background: #fff; }
.hero-badges p { flex: 1 1 220px; margin: 0; font-size: .92rem; color: #dfe6f5; }

/* Formulario */
.quote-card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; border-top: 6px solid var(--red); scroll-margin-top: 90px; }
.quote-card h2 { font-size: 1.55rem; margin-bottom: .2rem; }
.quote-card .muted { margin: 0 0 1rem; }
.progress { height: 6px; background: var(--sky); border-radius: 99px; overflow: hidden; margin-bottom: 1.2rem; }
.progress span { display: block; height: 100%; width: 25%; background: var(--blue); transition: width .3s; }
.step { border: 0; padding: 0; margin: 0; display: none; }
.step.active { display: block; }
legend { font-weight: 700; font-size: 1.1rem; margin-bottom: .8rem; padding: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices.col { grid-template-columns: 1fr; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; }
.choices span { display: block; border: 2px solid var(--line); border-radius: 10px; padding: .75rem .9rem; cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.choices input:checked + span { border-color: var(--red); background: #fff1f1; }
.choices input:focus-visible + span { outline: 3px solid var(--sky); }
.field { display: block; margin-bottom: .9rem; }
.field span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field input { width: 100%; padding: .75rem .85rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.field input:focus { outline: none; border-color: var(--blue); }
.estimate { background: var(--sky); border-radius: 10px; padding: .7rem .9rem; font-weight: 600; color: var(--blue-dark); margin: 0; }
.form-nav { display: flex; gap: 10px; margin-top: 1.1rem; }
.form-nav .btn-ghost { flex: 0 0 auto; }
.form-error { color: var(--red-dark); font-weight: 600; margin: .8rem 0 0; }
.hp { display: none; }
.thanks h3 { color: var(--green); }

/* Cotizador: menú, extras y resumen */
.menu-choices span, .extra span { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.menu-choices b, .extra b { font-weight: 600; }
.menu-choices small { grid-column: 1; color: var(--muted); font-size: .85rem; }
.price-tag { font-style: normal; font-weight: 700; color: var(--red); grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
.extras-list { display: grid; gap: 10px; }
.extra { position: relative; display: block; }
.extra input { position: absolute; opacity: 0; inset: 0; }
.extra span { border: 2px solid var(--line); border-radius: 10px; padding: .75rem .9rem; cursor: pointer; }
.extra input:checked + span { border-color: var(--red); background: #fff1f1; }
.extra input:checked + span b::before { content: "✓ "; color: var(--red); }
.field select { width: 100%; padding: .7rem .85rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.field.sub { margin: -4px 0 0 14px; }
.extras-list .field { margin-bottom: 0; }
.summary table { width: 100%; border-collapse: collapse; margin-bottom: .4rem; font-size: .95rem; }
.summary td { padding: .45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 10px; }
.summary td small { display: block; color: var(--muted); font-size: .8rem; }
.summary .total td { font-weight: 700; font-size: 1.1rem; color: var(--red); border-bottom: 0; }
.summary .dep td { font-size: .9rem; color: var(--blue-dark); border-bottom: 0; padding-top: 0; }
.summary { background: var(--cream); border-radius: 10px; padding: .6rem .9rem; margin-bottom: 1rem; }
.or { text-align: center; margin: 1rem 0 0; font-size: .95rem; color: var(--muted); }
.or a { font-weight: 700; color: var(--red); }

/* Barra de confianza */
.trustbar { background: var(--red); color: #fff; padding: 22px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; }
.trust-grid strong { display: block; font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 1.6rem; }
.trust-grid span { font-size: .9rem; opacity: .95; }

/* Secciones */
.section { padding: 72px 0; }
.section.alt { background: var(--cream); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 2rem; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.card.featured { border: 3px solid var(--red); transform: translateY(-6px); box-shadow: var(--shadow); }
.card-head { padding: 16px 20px; color: #fff; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-head span { font-family: "Alfa Slab One", serif; font-size: 1.4rem; }
.card-head small { font-weight: 600; }
.card-head.blue { background: var(--blue); }
.card-head.red { background: var(--red); }
.card.featured .card-head { padding-right: 76px; }
.card-img { width: 100%; height: 190px; object-fit: cover; }
.card ul { margin: 1rem 20px 0; padding-left: 1.1rem; flex: 1; }
.card li { margin-bottom: .35rem; }
.card .from { margin: 1rem 20px .6rem; font-weight: 700; color: var(--red); font-size: 1.1rem; }
.card .btn { margin: 0 20px 20px; width: calc(100% - 40px); }
.ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(35deg); background: #ffcf4d; color: var(--ink); font-weight: 700; font-size: .75rem; padding: 4px 40px; z-index: 2; }
.extras { margin-top: 2rem; background: var(--sky); border-radius: var(--radius); padding: 14px 20px; text-align: center; }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 1.5rem; }
.setup-grid figure { margin: 0; }
.setup-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); }
.setup-grid figcaption { margin-top: .6rem; font-weight: 600; text-align: center; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 2rem 0; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.steps li > span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-family: "Alfa Slab One", serif; font-size: 1.3rem; margin-bottom: .6rem; }
.steps p { margin: 0; color: var(--muted); }

.areas { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1.5rem; }
.areas li { background: #fff; border: 2px solid var(--blue); color: var(--blue-dark); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; }

details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; list-style: none; position: relative; padding-right: 2rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.5rem; color: var(--red); }
details[open] summary::after { content: "–"; }
details p { margin: .6rem 0 0; color: var(--muted); }

.final { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 64px 0; }
.final p { font-size: 1.1rem; }
.final-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

.footer { padding: 36px 0 100px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-grid img { width: 150px; height: auto; }
.footer-grid p { margin: .2rem 0; }
.footer-grid .small { margin-left: auto; }

/* Barra fija en móvil */
.mobilebar { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid, .why-grid { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card.featured { transform: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .brand img { height: 42px; }
  .top-actions .btn-red { padding: .5rem .8rem; font-size: .85rem; }
  .hero { padding: 32px 0 40px; }
  /* En móvil el formulario va casi arriba: quitamos texto secundario del hero */
  .hero .lead, .hero-badges { display: none; }
  .hero-grid { gap: 20px; }
  .quote-card { padding: 20px; }
  .setup-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .footer-grid .small { margin-left: 0; }
  .mobilebar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .mobilebar a { text-align: center; padding: 14px 4px; font-weight: 700; text-decoration: none; color: var(--blue); }
  .mobilebar a:nth-child(2) { color: var(--green); }
  .mobilebar .mb-quote { background: var(--red); color: #fff; }
}

/* ===== Cotizador v2: datos → paquete y extras → cotización y pago ===== */
.step-labels { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: -.6rem 0 1rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.step-labels li.on { color: var(--blue); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-error { display: block; color: var(--red-dark); font-style: normal; font-size: .82rem; font-weight: 600; margin-top: .25rem; }
.field input.invalid, .field select.invalid { border-color: var(--red); background: #fff6f6; }
.extras-box { margin-top: 1rem; border-top: 2px dashed var(--line); padding-top: .9rem; display: grid; gap: 10px; }
.extras-box h4 { margin: 0; font-size: 1rem; }
.live-total { display: flex; justify-content: space-between; align-items: center; background: var(--blue); color: #fff; border-radius: 10px; padding: .7rem .9rem; margin: .2rem 0 0; font-weight: 600; }
.live-total b { font-size: 1.25rem; }
.slogan { font-family: "Alfa Slab One", serif; color: var(--red); font-size: 1.15rem; text-align: center; margin: .2rem 0 .8rem; }
.pay-plan { border: 2px solid var(--blue); border-radius: 12px; overflow: hidden; margin-bottom: .9rem; }
.pay-plan .pp { display: flex; justify-content: space-between; gap: 10px; padding: .55rem .85rem; font-size: .9rem; border-top: 1px solid var(--line); }
.pay-plan .pp:first-child { border-top: 0; }
.pay-plan .pp.now { background: var(--sky); font-weight: 700; color: var(--blue-dark); font-size: 1rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; line-height: 1.45; margin-bottom: .7rem; cursor: pointer; }
.check input { margin-top: .2rem; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--red); }
.secure { margin: .2rem 0 0; }
.btn-pay { font-size: .95rem; }
@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .form-nav { flex-wrap: wrap; }
  .btn-pay { padding: .8rem .9rem; }
}

/* Cotización por WhatsApp y acceso de empresas */
.btn-wa { font-size: 1.05rem; padding: .95rem 1.2rem; margin-top: .4rem; }
.small-check { font-size: .78rem; color: var(--muted); margin: .2rem 0 .4rem; }
.small-check input { width: 15px; height: 15px; }
.biz-link { display: block; margin-top: 1rem; padding: .8rem 1rem; border: 2px dashed var(--blue); border-radius: 10px; text-align: center; text-decoration: none; color: var(--blue-dark); font-size: .92rem; }
.biz-link:hover { background: var(--sky); }
.pk-from { font-family: "Alfa Slab One", serif; color: var(--red); font-size: 1.4rem; margin: 0 0 .3rem; }
.biz-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; }
.biz-band .eyebrow { color: #ffcf4d; }
.biz-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.biz-grid p { max-width: 620px; }

/* Páginas internas (gracias, mi pedido, privacidad) */
.page { padding: 48px 0 80px; background: var(--cream); min-height: 70vh; }
.page .panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; max-width: 680px; margin: 0 auto; }
.page h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.status { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--sky); color: var(--blue-dark); }
.status.ok { background: #e3f7ea; color: #13703a; }
.status.warn { background: #fff4d6; color: #8a5a00; }
.promo { background: linear-gradient(120deg, #fff1f1, #fff); border: 2px solid var(--red); border-radius: var(--radius); padding: 18px; margin: 1rem 0; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6rem; }
.legal p, .legal li { color: #333; }
