/* ===== Xijusa · Página web =====
   Desarrollado por Kompilador S.A.S. */
:root {
  --red: #C8102E;
  --red-dark: #9B0D21;
  --red-deep: #6E0A18;
  --cream: #FFF6E6;
  --cream-2: #FBEBD0;
  --paper: #FFFCF6;
  --brown: #4A1B0F;
  --brown-2: #7A3A1E;
  --gold: #F2A93B;
  --yellow: #F7C948;
  --green: #1E6B3A;
  --ink: #2B160E;
  --muted: #7B5F51;
  --line: #EED9BC;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(90, 30, 12, .35);
  --shadow-sm: 0 6px 18px -8px rgba(90, 30, 12, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--brown); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; flex: none; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.script { font-family: 'Kaushan Script', cursive; }

.logo-type {
  font-family: 'Lobster', cursive;
  font-weight: 400;
  color: #fff;
  font-size: clamp(4rem, 11vw, 7.6rem);
  line-height: 1;
  margin: .05em 0 .1em;
  letter-spacing: .01em;
  -webkit-text-stroke: 3px var(--red);
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 var(--red), 0 4px 0 var(--red), 0 6px 0 var(--red-dark),
    0 8px 0 var(--red-dark), 0 14px 22px rgba(110, 10, 24, .35);
}
.logo-type.small { font-size: 2.6rem; -webkit-text-stroke-width: 2px; text-shadow: 0 2px 0 var(--red), 0 4px 0 var(--red-dark); }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem 'Poppins', sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.btn-red { background: linear-gradient(180deg, #E0213F, var(--red)); color: #fff; box-shadow: 0 10px 22px -10px rgba(200, 16, 46, .8); }
.btn-red:hover { box-shadow: 0 14px 28px -10px rgba(200, 16, 46, .9); }
.btn-ghost { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-ghost:hover { background: var(--brown); color: #fff; }
.btn-sm { padding: .6em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---- Barra superior y navegación ---- */
.topbar { background: var(--red-deep); color: #FCE3C4; font-size: .82rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; }
.topbar-links { display: flex; gap: 18px; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 246, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(90, 30, 12, .5); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-img { height: 58px; width: auto; }
.brand-text {
  font-family: 'Lobster', cursive; font-size: 2.3rem; color: #fff; line-height: 1;
  -webkit-text-stroke: 2px var(--red); paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--red), 0 3px 0 var(--red-dark);
}
.has-logo .brand-text { display: none; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--brown); position: relative; padding: 4px 0; }
.menu a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red);
  transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.menu a:hover::after { transform: scaleX(1); }
.menu .menu-login { color: var(--muted); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: 4px; }
.burger span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--brown); margin: 5px 0; transition: .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(242, 169, 59, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(200, 16, 46, .08), transparent 60%),
    var(--cream);
}
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 60px 0 90px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: #fff; color: var(--red); font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-sm);
}
.pill svg { width: 1em; height: 1em; }
.hero-kicker { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--brown); margin: 22px 0 0; }
.hero-sub { font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: var(--brown); margin: 0 0 18px; position: relative; display: inline-block; }
.hero-sub::after {
  content: ''; position: absolute; left: 4%; right: 0; bottom: -4px; height: 5px; border-radius: 4px;
  background: linear-gradient(90deg, var(--red) 0 55%, var(--yellow) 55%);
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 34px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: var(--red); line-height: 1.2; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

.hero-art { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.hero-photo {
  position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: cover;
  border-radius: 50%; box-shadow: var(--shadow); border: 10px solid #fff; z-index: 1;
}
.has-photo .plate { display: none; }
.plate {
  position: absolute; inset: 6%; border-radius: 50%; overflow: hidden;
  background: #fff; box-shadow: var(--shadow), inset 0 0 0 12px #fff;
}
.gingham {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(200, 16, 46, .5) 0 18px, transparent 18px 36px),
    repeating-linear-gradient(90deg, rgba(200, 16, 46, .5) 0 18px, transparent 18px 36px),
    #fff;
}
.gingham.soft { opacity: .35; }
.plate .b { position: absolute; filter: drop-shadow(0 10px 12px rgba(80, 30, 10, .35)); }
.b1 { width: 64%; left: 4%; top: 30%; transform: rotate(-8deg); }
.b2 { width: 40%; right: 6%; top: 14%; }
.b3 { width: 36%; right: 12%; bottom: 10%; transform: rotate(10deg); }
.b4 { width: 46%; left: 18%; top: 4%; transform: rotate(12deg); z-index: -0; opacity: .97; }
.plate .b1 { z-index: 2; } .plate .b3 { z-index: 3; }
.wheat { position: absolute; width: 13%; z-index: 2; filter: drop-shadow(0 4px 6px rgba(120, 70, 10, .25)); }
.w1 { left: -2%; top: 8%; transform: rotate(-28deg); }
.w2 { right: 0; bottom: 6%; transform: rotate(32deg); }
.stamp {
  position: absolute; width: 30%; height: auto; right: -4%; top: -2%; z-index: 3;
  filter: drop-shadow(0 8px 16px rgba(90, 30, 12, .25));
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mug-note {
  position: absolute; left: -2%; bottom: 6%; z-index: 3; background: #fff; color: var(--brown);
  padding: 14px 22px; border-radius: 18px; font-size: 1.25rem; line-height: 1.2; box-shadow: var(--shadow);
  transform: rotate(-6deg);
}
.mug-note svg { color: var(--red); width: .9em; height: .9em; vertical-align: -2px; }

/* ---- Valores ---- */
.values { background: var(--red); color: #fff; position: relative; }
.values::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 6px;
  background: linear-gradient(90deg, var(--yellow) 0 50%, var(--gold) 50%);
}
.values-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 34px 0; }
.value { display: flex; align-items: flex-start; gap: 16px; }
.value h3 { color: #fff; margin: 0 0 2px; font-size: 1.15rem; }
.value p { margin: 0; color: #FFDCD9; font-size: .93rem; }
.value-ic {
  width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .14);
  display: grid; place-items: center; flex: none; color: var(--yellow);
}
.value-ic svg { width: 26px; height: 26px; }

/* ---- Secciones ---- */
.section { padding: 100px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.eyebrow { color: var(--red); font-size: 1.45rem; margin: 0 0 4px; }
.eyebrow.light { color: var(--yellow); }

/* ---- Productos ---- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; max-width: 980px; margin-inline: auto; }
.product {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .3s;
  border: 1px solid var(--line);
}
.product:hover { transform: translateY(-6px); }
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--cream-2); overflow: hidden; display: grid; place-items: center; }
.product-media img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.product-media img.illus { width: 68%; height: auto; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(80, 30, 10, .35)); transition: transform .5s; }
.product:hover .product-media img.illus { transform: scale(1.06) rotate(-3deg); }
.tag {
  position: absolute; top: 16px; left: 16px; background: var(--red); color: #fff; font-size: .78rem;
  font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: .03em;
}
.tag-gold { background: var(--gold); color: var(--brown); }
.product-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.45rem; margin-bottom: 8px; }
.product-body p { color: var(--muted); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.price { font-size: 1.7rem; font-weight: 700; color: var(--red); }
.price small { font-size: .8rem; color: var(--muted); font-weight: 500; }

.promo { padding: 0 0 100px; }
.promo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---- Historia ---- */
.story { background: var(--cream); }
.story-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.story-art { position: relative; }
.story-card {
  position: relative; aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
  border: 10px solid #fff; background: #fff;
}
.story-card img { position: absolute; filter: drop-shadow(0 12px 14px rgba(80, 30, 10, .35)); }
.sa1 { width: 40%; left: 8%; top: 12%; }
.sa2 { width: 36%; left: 30%; bottom: 6%; z-index: 2; }
.sa3 { width: 52%; right: 4%; top: 22%; transform: rotate(-10deg); }
.story-badge {
  position: absolute; right: -14px; bottom: -22px; background: var(--brown); color: #fff; padding: 16px 24px;
  border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.2;
}
.story-badge strong { font-size: 1.5rem; color: var(--yellow); font-weight: 400; }
.story-badge span { font-size: .88rem; color: #F3DCC6; }
.story-copy p { color: var(--muted); font-size: 1.04rem; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checks svg { color: #fff; background: var(--green); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }

/* ---- Pedidos ---- */
.order {
  padding: 100px 0; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 400px at 10% 10%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--red-deep) 100%);
}
.order-in { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; }
.order h2 { color: #fff; }
.order-copy p { color: #FFDCD9; font-size: 1.04rem; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.steps span {
  width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--brown);
  display: grid; place-items: center; font-weight: 700; flex: none;
}
.order-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.order-form h3 { margin-bottom: 18px; }
.order-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--brown-2); margin-bottom: 14px; }
.order-form input, .order-form select, .order-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); font: 400 .95rem 'Poppins', sans-serif; color: var(--ink);
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { border-color: var(--red); outline: none; }
.order-form .invalid { border-color: var(--red); background: #FFF0F0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* ---- Sedes ---- */
.sedes { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.sede {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.sede::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.sede h3 { margin-bottom: 12px; }
.sede p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; color: var(--muted); font-size: .93rem; }
.sede p svg { color: var(--red); margin-top: 3px; }
.sede a { text-decoration: none; }
.sede-empty { grid-column: 1 / -1; text-align: center; padding: 40px; display: flex; flex-direction: column; align-items: center; }
.sede-empty svg { width: 40px; height: 40px; color: var(--red); margin-bottom: 10px; }
.sede-empty p { display: block; max-width: 420px; }

/* ---- Contacto ---- */
.contact { background: var(--cream); padding: 80px 0; }
.contact-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.contact-cards { display: grid; gap: 14px; }
.ccard {
  display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 18px; padding: 16px 20px;
  text-decoration: none; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s;
  min-width: 0;
}
.ccard:hover { transform: translateX(6px); }
.ccard > span:last-child { min-width: 0; }
.ccard small { display: block; color: var(--muted); font-size: .8rem; }
.ccard strong { display: block; color: var(--brown); font-size: 1.1rem; overflow-wrap: anywhere; }
.ccard-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: #fff; flex: none; }
.ccard-ic.wa { background: #25D366; }
.ccard-ic svg { width: 24px; height: 24px; }

/* ---- Footer ---- */
.footer { background: var(--brown); color: #F3DCC6; padding: 50px 0 100px; }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.footer .script { margin: 0; color: var(--yellow); font-size: 1.15rem; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; font-size: .92rem; }
.footer nav a:hover { color: #fff; }
.copy {
  grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; margin: 10px 0 0; font-size: .85rem; color: #C7A994;
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
}
.credit { letter-spacing: .02em; }
.credit strong { color: #F3DCC6; font-weight: 600; }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .45);
  animation: pulse 2.6s infinite;
}
.wa-float svg { width: 32px; height: 32px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp, .wa-float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; padding: 40px 0 70px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-art { max-width: 440px; }
  .story-in, .order-in, .contact-in { grid-template-columns: 1fr; gap: 48px; }
  .story-art { max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 860px) {
  .menu {
    position: fixed; inset: 0 0 0 auto; top: 0; width: min(300px, 82vw); flex-direction: column; gap: 4px;
    background: var(--paper); padding: 96px 28px 28px; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .35);
    transform: translateX(100%); transition: transform .35s ease; z-index: 70;
  }
  .menu.open { transform: none; }
  .menu a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .burger { display: block; z-index: 80; }
  .nav-cta { margin-left: auto; }
  .values-in { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .topbar-in > span:first-child { display: none; }
  .topbar-links { width: 100%; justify-content: center; }
  .section, .order { padding: 70px 0; }
  .products { grid-template-columns: 1fr; }
  .nav-cta { padding: .55em .9em; font-size: .85rem; }
  .brand-text { font-size: 1.95rem; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .order-form { padding: 22px; }
  .hero-stats { gap: 22px; }
  .footer-in { grid-template-columns: 1fr; text-align: center; }
  .copy { justify-content: center; flex-direction: column; align-items: center; }
  .footer nav { justify-content: center; }
  .story-badge { right: 8px; }
  .mug-note { font-size: 1rem; padding: 10px 16px; }
}
.credit a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(243,220,198,.35); transition: border-color .2s; }
.credit a:hover { border-color: #F3DCC6; }
