/* =========================================================
   PONCHELÍ EMPANADERÍA · styles.css
   Paleta cálida artesanal · Mobile-first
========================================================= */

/* ===== TIPOGRAFÍA: Airbnb Cereal ===== */
@font-face {
  font-family: "Airbnb Cereal";
  src: url("assets/airbnb/AirbnbCereal_W_Lt.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal";
  src: url("assets/airbnb/AirbnbCereal_W_Bk.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal";
  src: url("assets/airbnb/AirbnbCereal_W_Md.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal";
  src: url("assets/airbnb/AirbnbCereal_W_Bd.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal";
  src: url("assets/airbnb/AirbnbCereal_W_XBd.otf") format("opentype");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Airbnb Cereal";
  src: url("assets/airbnb/AirbnbCereal_W_Blk.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  /* Marca */
  --orange:        #E8612C;
  --orange-deep:   #C84A18;
  --orange-soft:   #F6A35B;
  --gold:          #E2A41F;
  --gold-deep:     #C2871A;

  /* Neutros cálidos */
  --cream:         #FCF6EC;
  --cream-2:       #F6ECDB;
  --paper:         #FFFFFF;
  --ink:           #2A2018;
  --ink-soft:      #5C4B3B;
  --line:          #E9DCC7;

  /* Sistema */
  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     28px;
  --shadow-sm:     0 4px 14px rgba(42, 32, 24, .08);
  --shadow-md:     0 14px 40px rgba(42, 32, 24, .12);
  --shadow-lg:     0 30px 70px rgba(200, 74, 24, .18);
  --container:     1180px;
  --ease:          cubic-bezier(.22, 1, .36, 1);

  --font-display:  "Airbnb Cereal", system-ui, -apple-system, sans-serif;
  --font-body:     "Airbnb Cereal", system-ui, -apple-system, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; font-weight: 700; letter-spacing: -.01em; }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: .85em 1.5em; border-radius: 100px; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 1.1em; }
.btn-lg { padding: 1.05em 2em; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(232, 97, 44, .35); }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(232, 97, 44, .45); }

.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }

.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #1c150f; transform: translateY(-3px); }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 246, 236, .82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-text { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; line-height: .95; display: flex; flex-direction: column; color: var(--ink); }
.brand-text small { font-family: var(--font-body); font-weight: 600; font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { font-weight: 600; font-size: .95rem; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--orange); transition: width .3s var(--ease); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.btn-nav { padding: .6em 1.2em; font-size: .9rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 85% -5%, rgba(246, 163, 91, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(226, 164, 31, .22), transparent 55%),
    linear-gradient(180deg, rgba(252, 246, 236, .92) 0%, rgba(252, 246, 236, .82) 45%, rgba(252, 246, 236, .9) 100%),
    url("assets/img/empanada-bg.webp") center/cover no-repeat,
    var(--cream);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; background: #fff; border: 1px solid var(--line); color: var(--orange-deep); font-weight: 700; font-size: .82rem; padding: .5em 1em; border-radius: 100px; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); margin: 1.1rem 0 1.2rem; font-weight: 900; }
.hero h1 .accent { color: var(--orange); font-style: italic; font-weight: 500; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; padding-top: .4rem; }
.hero-trust li { display: flex; align-items: center; gap: .5em; font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.hero-trust i { color: var(--orange); font-size: 1.2em; }

.hero-media { position: relative; }
.hero-media > img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transform: rotate(1.4deg);
}
.hero-badge {
  position: absolute; left: -18px; bottom: 28px;
  display: flex; align-items: center; gap: .8rem;
  background: #fff; padding: .9rem 1.2rem; border-radius: 16px; box-shadow: var(--shadow-md);
}
.hero-badge i { font-size: 1.9rem; color: var(--orange); }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.hero-badge span { font-size: .8rem; color: var(--ink-soft); }

/* ===== SECTION HEAD ===== */
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.2rem); }
.kicker { display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin-bottom: .8rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-sub { margin-top: .9rem; color: var(--ink-soft); font-size: 1.05rem; }

/* ===== BENEFITS ===== */
.benefits { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.benefit-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.benefit-card i { font-size: 2.3rem; color: var(--orange); margin-bottom: 1rem; --fa-secondary-color: var(--gold); --fa-secondary-opacity: .35; }
.benefit-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.benefit-card p { color: var(--ink-soft); font-size: .96rem; }

/* ===== VARIETIES ===== */
.varieties { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--cream-2); }
.variety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.variety-card {
  position: relative; background: var(--paper); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.variety-card::before { content: ""; position: absolute; left: 0; top: 0; width: 5px; height: 100%; background: linear-gradient(var(--orange), var(--gold)); }
.variety-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.variety-card h3 { font-size: 1.35rem; margin: .7rem 0 .6rem; }
.variety-card h3 .flag { font-size: 1rem; }
.variety-card p { color: var(--ink-soft); font-size: .95rem; }
.variety-tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: .35em .8em; border-radius: 100px; color: #fff;
}
.tag-pino { background: #C84A18; } .tag-pollo { background: #D99114; }
.tag-mechada { background: #9A3412; } .tag-burger { background: #B45309; }
.tag-hoja { background: #CA8A04; } .tag-mar { background: #0E7490; }
.tag-italia { background: #B91C1C; } .tag-dulce { background: #DB2777; }

/* ===== GALERÍA (CARRUSEL) ===== */
.gallery { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 6px 4px 18px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 clamp(240px, 30%, 320px); margin: 0; scroll-snap-align: center;
  aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); position: relative;
}
.carousel-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.carousel-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(42,32,24,.28)); opacity: 0; transition: opacity .4s var(--ease); }
.carousel-item:hover img { transform: scale(1.07); }
.carousel-item:hover::after { opacity: 1; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-md);
  display: grid; place-items: center; font-size: 1.1rem;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.carousel-btn:hover { background: var(--orange); color: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-prev { left: -10px; }
.carousel-next { right: -10px; }

/* ===== MENÚ ===== */
.menu { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.menu-wrap { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.8rem; align-items: start; }
.menu-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .6rem 1.6rem; box-shadow: var(--shadow-sm); }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: 0; }
.mi-info h3 { font-size: 1.12rem; font-weight: 600; }
.mi-info p { font-size: .85rem; color: var(--ink-soft); margin-top: .15rem; }
.mi-price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--orange-deep); white-space: nowrap; }

.menu-aside { background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); padding: 2rem 1.8rem; box-shadow: var(--shadow-md); position: sticky; top: 92px; }
.menu-aside h3 { color: #fff; font-size: 1.3rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.menu-aside h3 i { color: var(--gold); }
.menu-aside ul { display: grid; gap: .65rem; margin-bottom: 1.5rem; }
.menu-aside li { position: relative; padding-left: 1.4rem; font-size: .98rem; color: #EAD9C2; }
.menu-aside li::before { content: "\f0c8"; font-family: "Font Awesome 7 Duotone","Font Awesome 6 Duotone"; }
.menu-aside li::before { content: "•"; position: absolute; left: 0; color: var(--orange-soft); font-weight: 900; }
.aside-note { display: flex; gap: .8rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.aside-note i { color: var(--gold); font-size: 1.4rem; flex-shrink: 0; }
.aside-note p { font-size: .9rem; color: #EAD9C2; }

/* ===== ABOUT ===== */
.about { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--cream-2); }
.about-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media { position: relative; min-height: 420px; }
.about-img-1 { width: 80%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-img-2 { position: absolute; right: 0; bottom: -10px; width: 48%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--cream-2); box-shadow: var(--shadow-md); }
.about-content h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 1rem 0 1.2rem; }
.about-content p { color: var(--ink-soft); margin-bottom: 1rem; }
.about-points { margin: 1.5rem 0; display: grid; gap: .7rem; }
.about-points li { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.about-points i { color: var(--orange); }

/* ===== TESTIMONIOS ===== */
.testimonials { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.testimonial { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); }
.stars { color: var(--gold); display: flex; gap: .2rem; margin-bottom: 1rem; }
.testimonial blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.45; margin-bottom: 1.3rem; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { font-size: .85rem; color: var(--ink-soft); }

/* ===== CTA FINAL ===== */
.cta-final { padding: clamp(3rem, 6vw, 5rem) 0; }
.cta-inner {
  text-align: center; background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 50% 0, rgba(255,255,255,.18), transparent); }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .8rem; position: relative; }
.cta-inner p { max-width: 48ch; margin: 0 auto 1.8rem; opacity: .95; position: relative; }
.cta-inner .btn-primary { background: #fff; color: var(--orange-deep); position: relative; }
.cta-inner .btn-primary:hover { background: var(--ink); color: #fff; }

/* ===== CONTACTO ===== */
.contact { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.8rem; }
.contact-cards { display: grid; gap: 1rem; align-content: start; }
.contact-card { display: flex; align-items: center; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card i { font-size: 1.7rem; color: var(--orange); width: 38px; text-align: center; }
.contact-card strong { display: block; }
.contact-card span { font-size: .92rem; color: var(--ink-soft); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink); color: var(--cream); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 2.6rem; padding-bottom: 2.6rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.2rem; display: block; }
.footer-brand span { font-size: .85rem; color: #C9B8A2; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { color: #D8C8B2; font-weight: 600; font-size: .95rem; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: .8rem; }
.footer-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 1.2rem; transition: .25s var(--ease); }
.footer-social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #B7A78F; }
.footer-bottom a { color: var(--orange-soft); font-weight: 700; }
.footer-bottom a:hover { text-decoration: underline; }

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  font-size: 1.8rem; box-shadow: 0 10px 28px rgba(37, 211, 102, .5);
  transition: transform .25s var(--ease);
  animation: waPulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse { 0%, 100% { box-shadow: 0 10px 28px rgba(37,211,102,.5); } 50% { box-shadow: 0 10px 28px rgba(37,211,102,.5), 0 0 0 12px rgba(37,211,102,.12); } }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .variety-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-btn { width: 42px; height: 42px; }
  .carousel-prev { left: 2px; } .carousel-next { right: 2px; }
  .menu-wrap { grid-template-columns: 1fr; }
  .menu-aside { position: static; }
  .hero-inner, .about-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin: 0 auto; }
  .about-media { max-width: 480px; margin: 0 auto 2rem; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    background: var(--cream); flex-direction: column; align-items: stretch;
    gap: 0; padding: 1rem 22px 1.8rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .4s var(--ease); opacity: 0; pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .btn-nav { margin-top: 1rem; justify-content: center; }
  .hamburger { display: flex; }
  .hero-trust { gap: .8rem 1.2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .benefit-grid, .variety-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .carousel-item { flex-basis: 78%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: -22px; }
  .hero-media > img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
