/* =========================================
   Señor Coco — Recetas (coming soon) Page Styles
   ========================================= */

/* === CSS Custom Properties === */
:root {
  /* palette + type matched to the homepage (new_senorcoco.jpg) */
  --red:          #b01c15;
  --red-dark:     #8f1611;
  --white:        #ffffff;
  --font-ui:      'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
  --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-script:  'Kaushan Script', cursive;
  /* page-level names used by the rules below */
  --color-primary:      #30180a;
  --color-accent:       #b01c15;
  --color-accent-dark:  #8f1611;
  --color-nav-bg:       #ffffff;
  --color-cream:        #faf1e7;
  --color-gray:         #4b4440;
  --color-light-gray:   #f3ebe3;
  --color-white:        #ffffff;
  --color-text:         #1c140f;
  --font-head: var(--font-ui);
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --radius:     14px;
  --shadow:     0 4px 20px rgba(60, 30, 10, 0.08);
  --transition: 0.25s ease;
  --max-width:  1200px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === Header (utility bar + nav) — copied from main.css; dimensions are in
   homepage-mockup pixels via --u = page width / 1536, see main.css === */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.page { display: flex; flex-direction: column; min-height: 100vh; }
/* Container for the mockup unit. */
.page { container-type: inline-size; overflow-x: clip; }
/* --u: one mockup pixel. The mockup is drawn at 84% (it read as "zoomed in" at 1:1) and never
   grows past its own size, so on very wide screens the layout simply gets more breathing room. */
.page * { --u: min(calc(100cqw * 0.84 / 1536), 1.3px); }

/* =========================================
   DESKTOP (≥ 900px) — mockup-exact layout
   ========================================= */

/* --- Utility bar (mockup y 0–46) --- */
.utility-bar {
  background: linear-gradient(90deg, #b4201b, #a81a14);
  color: #fff1ec;
}
.utility-inner {
  height: calc(46 * var(--u));
  padding: 0 calc(58 * var(--u)) 0 calc(65 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.utility-phone {
  display: flex;
  align-items: center;
  gap: calc(15 * var(--u));
  font-family: var(--font-body);
  font-weight: 400;
  font-size: max(12px, calc(17.3 * var(--u)));   /* 12px floor keeps it readable on small laptops */
  letter-spacing: 0.06em;
  line-height: 1;
}
.utility-phone i { font-size: calc(26 * var(--u)); }
.utility-phone span { transform: translate(calc(2 * var(--u)), calc(3 * var(--u))); }
.utility-social { display: flex; align-items: center; gap: calc(29 * var(--u)); transform: translateY(calc(2 * var(--u))); }
.utility-social a { font-size: calc(28 * var(--u)); line-height: 1; transition: opacity .2s; }
.utility-social a:hover { opacity: .8; }

/* --- Header / nav (mockup y 46–222) --- */
.site-header {
  position: relative;
  z-index: 20;               /* lets the logo swoosh overlap the hero */
  background: var(--white);
}
.nav-inner { position: relative; height: calc(176 * var(--u)); }
.nav-logo {
  position: absolute;
  left: calc(52 * var(--u));
  top: calc(12 * var(--u));
  width: calc(290 * var(--u));
}
.nav-logo-img { width: 100%; height: auto; }
.nav-logo-swoosh {
  position: absolute;
  left: calc(48 * var(--u));
  top: calc(147 * var(--u));
  width: calc(240 * var(--u));
  height: calc(27 * var(--u));
}
.nav-menu ul {
  position: absolute;
  right: calc(289 * var(--u));     /* nav + PEDIDOS anchored to the right edge, as in the mockup */
  top: calc(71.4 * var(--u));
  display: flex;
  gap: calc(64 * var(--u));
}
.nav-menu a {
  position: relative;
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: calc(20.6 * var(--u));
  line-height: 1;
  color: #161210;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-menu a:hover { color: var(--red); }
.nav-menu a.nav-active { color: #a8191b; }
.nav-menu a.nav-inicio { letter-spacing: -0.055em; }   /* mockup's INICIO is set tighter than the other items */
.nav-menu a.nav-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: calc(27.6 * var(--u));
  height: calc(3 * var(--u));
  background: #b3201c;
}
.nav-menu a.nav-inicio.nav-active::after { left: calc(1 * var(--u)); right: auto; width: calc(54 * var(--u)); }
.nav-pedidos-item {
  position: absolute;
  right: calc(-236 * var(--u));   /* PEDIDOS right edge = 53 mockup px from the page edge */
  top: calc(-12.4 * var(--u));    /* 59 − 71.4 */
}
.nav-menu a.nav-pedidos {
  display: flex;
  align-items: center;
  gap: calc(15 * var(--u));
  min-width: calc(157 * var(--u));
  padding-right: calc(18 * var(--u));
  height: calc(47 * var(--u));
  padding-left: calc(21 * var(--u));
  gap: calc(14 * var(--u));
  border-radius: 999px;
  background: var(--red);
  color: #fff1e8;
  font-size: max(12px, calc(17.5 * var(--u)));
  letter-spacing: 0.01em;
  transition: background .2s;
}
.nav-menu a.nav-pedidos:hover { background: var(--red-dark); }
.nav-pedidos svg { width: calc(31 * var(--u)); height: calc(31 * var(--u)); flex: none; transform: translate(calc(-1.5 * var(--u)), calc(-2 * var(--u))); }

/* Hamburger (mobile only) */
.nav-toggle { display: none; }


/* === Coming soon === */
.recetas-main {
  flex: 1;
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  text-align: center;
}
.recetas-container { max-width: 560px; }
.recetas-icon { font-size: 2.6rem; color: var(--color-accent); margin-bottom: 12px; }
.recetas-script { font-family: var(--font-script); font-size: 2.4rem; color: var(--color-accent); margin-bottom: 4px; }
.recetas-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.recetas-subtitle { color: var(--color-gray); font-size: 1rem; line-height: 1.75; margin-bottom: 32px; }
.recetas-btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 999px;
  transition: background-color var(--transition), transform var(--transition);
}
.recetas-btn:hover { background-color: var(--color-accent-dark); transform: translateY(-2px); }

/* === Copyright === */
.copyright {
  background: linear-gradient(90deg, #b4201b, #a81a14);   /* same red band as the utility bar */
  color: #fff1ec;
  text-align: center;
  padding: 13px 24px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.copyright strong { color: var(--color-white); }

/* === Responsive === */
@media (max-width: 768px) {
  .recetas-main { padding: 64px 16px; }
}

@media (max-width: 1099.98px) {   /* stacked layout for phones and tablets (incl. iPad landscape) */
  .utility-inner { height: 40px; padding: 0 16px; }
  .utility-phone { font-size: 15px; gap: 10px; }
  .utility-phone i { font-size: 20px; }
  .utility-social { gap: 18px; }
  .utility-social a { font-size: 21px; }

  .nav-inner { height: 92px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
  .nav-logo { position: relative; left: auto; top: auto; width: 150px; }
  .nav-logo-swoosh { left: 25px; top: 76px; width: 124px; height: 14px; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 28px; height: 2.5px; border-radius: 2px; background: #161210; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .08);
  }
  .nav-menu.is-open { max-height: 460px; }
  .nav-menu ul { position: static; flex-direction: column; gap: 0; padding: 8px 0 20px; }
  .nav-menu a { font-size: 19px; padding: 13px 24px; text-align: center; }
  .nav-menu a.nav-active::after { display: none; }
  .nav-pedidos-item { position: static; padding: 8px 24px 0; }
  .nav-menu a.nav-pedidos { width: auto; height: 48px; justify-content: center; padding: 0 22px; font-size: 18px; gap: 12px; }
  .nav-pedidos svg { width: 26px; height: 26px; }
}
