/* ============================================================
   Feliz Día · Desayunos a domicilio
   Paleta: crema cálido + frambuesa (marca), texto marrón oscuro
   Tipografía: Fredoka (display) · Caveat (script) · Nunito (texto)
   ============================================================ */

:root {
  --cream: #fdf6ee;
  --blush: #fce8ef;
  --paper: #fffcf8;
  --ink: #40262c;
  --muted: #8a6f74;
  --pink: #c9184a;
  --pink-deep: #9c1036;
  --pink-soft: #f8c8d4;
  --red: #c9131b;
  --gold: #dfa43d;
  --line: #efdcd2;
  --radius: 22px;
  --font-display: "Fredoka", "Nunito", sans-serif;
  --font-script: "Caveat", cursive;
  --font-body: "Nunito", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.25s cubic-bezier(0.165, 0.84, 0.44, 1),
              background-color 0.25s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(201, 24, 74, 0.28);
}
.btn-primary:hover { background: var(--pink-deep); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(201, 24, 74, 0.34); }
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--pink);
  box-shadow: inset 0 0 0 2px var(--pink);
}
.btn-ghost:hover { background: var(--pink); color: #fff; transform: translateY(-3px); }

.btn-light { background: #fff; color: var(--pink-deep); }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }

.btn-sm { padding: 11px 22px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 238, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo { width: 40px; height: 40px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-script);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--pink);
  line-height: 1;
}
.brand-name em { font-style: normal; font-size: 1.05rem; color: var(--muted); }

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.site-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--pink);
  transition: right 0.25s ease;
}
.site-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  gap: 4px;
}
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .mobile-nav-cta { color: var(--pink); border-bottom: none; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 24px clamp(56px, 8vw, 104px);
  background:
    radial-gradient(640px 420px at 88% 8%, var(--blush), transparent 70%),
    radial-gradient(520px 380px at 4% 92%, #fdeede, transparent 70%),
    var(--cream);
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-kicker, .kicker {
  font-family: var(--font-script);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 6px;
}
.hero-title { font-size: clamp(2.5rem, 5.4vw, 3.9rem); }
.script-underline {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.12em;
  color: var(--pink);
  position: relative;
  white-space: nowrap;
}
.script-underline::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%; bottom: -4px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 30 2 60 7 T 118 6' fill='none' stroke='%23dfa43d' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero-sub {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 1.06rem;
  color: var(--muted);
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-badges {
  margin-top: 26px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-media { position: relative; }
.hero-photo {
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 24px 48px rgba(156, 16, 54, 0.16);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.6; }

.heart, .sparkle { position: absolute; pointer-events: none; }
.h1 { width: 44px; top: -14px; left: -10px; }
.h2 { width: 30px; bottom: 22%; right: -14px; }
.h3 { width: 26px; bottom: -8px; left: 12%; }
.sparkle { width: 28px; top: 12%; right: -18px; }

.float-a { animation: floatY 5.2s ease-in-out infinite alternate; }
.float-b { animation: floatY 4.2s ease-in-out 0.8s infinite alternate-reverse; }
@keyframes floatY {
  from { transform: translateY(-7px) rotate(-3deg); }
  to   { transform: translateY(9px) rotate(4deg); }
}

/* ============ Ticker ============ */
.ticker {
  background: var(--pink);
  color: #fff;
  overflow: hidden;
  padding: 13px 0;
  transform: rotate(-1deg) scale(1.02);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: ticker 26s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ticker-track i { font-style: normal; color: var(--gold); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Secciones ============ */
.section { padding: clamp(64px, 9vw, 110px) 24px; max-width: 1160px; margin: 0 auto; }
.section-blush {
  max-width: none;
  background:
    radial-gradient(560px 380px at 92% 100%, #fbdce6, transparent 70%),
    var(--blush);
}
.section-blush > * { max-width: 1160px; margin-left: auto; margin-right: auto; }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-sub { margin-top: 14px; color: var(--muted); }

/* ============ Productos ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(156, 16, 54, 0.14);
}
.product-media { position: relative; overflow: hidden; }
.product-media img {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.product-card:hover .product-media img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}
.product-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-name { font-size: 1.25rem; }
.product-price {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--pink);
}
.product-price small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
}
.product-includes { margin-top: 12px; flex: 1; }
.product-includes summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--pink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-radius: 6px;
}
.product-includes summary::-webkit-details-marker { display: none; }
.product-includes summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.product-includes[open] summary::after { transform: rotate(225deg); }
.product-includes ul {
  list-style: none;
  margin-top: 8px;
  display: grid;
  gap: 5px;
  font-size: 0.9rem;
  color: var(--muted);
}
.product-includes li { display: flex; gap: 8px; }
.product-includes li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--pink-soft);
  box-shadow: 0 0 0 1.5px var(--pink);
}
.product-cta { margin-top: 18px; }

/* ============ Pasos ============ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.step {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 24px 28px;
  border: 1px solid #f3d4de;
}
.step-num {
  position: absolute;
  top: 12px; right: 18px;
  font-family: var(--font-script);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pink-soft);
}
.step-icon {
  width: 46px; height: 46px;
  color: var(--pink);
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.93rem; color: var(--muted); }

/* ============ Agendamiento ============ */
.booking {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
}
.booking-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.field label small { color: var(--muted); font-weight: 500; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(201, 24, 74, 0.14);
}
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field-error {
  display: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
}
.field.has-error .field-error { display: block; }

.booking-preview { position: sticky; top: 96px; }
.preview-label {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 12px;
}
.preview-bubble {
  background: #dcf5d7;
  border-radius: 18px 18px 4px 18px;
  padding: 18px 20px 10px;
  box-shadow: 0 3px 10px rgba(64, 38, 44, 0.08);
}
.preview-bubble p {
  font-size: 0.95rem;
  white-space: pre-line;
  word-break: break-word;
}
.preview-time {
  display: block;
  text-align: right;
  font-size: 0.72rem;
  color: #5c8a55;
  margin-top: 6px;
}
.preview-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ============ Cobertura ============ */
.coverage {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.coverage-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 20px 44px rgba(156, 16, 54, 0.14);
}
.coverage-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.comuna-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.comuna-chips li {
  background: var(--paper);
  border: 1px solid #f3d4de;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

/* ============ Pagos ============ */
.payments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.webpay-logo {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
}
.webpay-logo .web { color: var(--ink); }
.webpay-logo .pay { color: var(--gold); }
.webpay-logo .plus {
  display: inline-block;
  margin-left: 6px;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  vertical-align: middle;
  transform: rotate(-2deg);
}
.payments-points { list-style: none; display: grid; gap: 14px; }
.payments-points li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.payments-points svg { flex: none; width: 40px; height: 40px; color: var(--pink); }
.payments-points strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.payments-points span { font-size: 0.9rem; color: var(--muted); }

/* ============ CTA final ============ */
.final-cta {
  background:
    radial-gradient(500px 300px at 15% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(135deg, var(--pink), var(--pink-deep));
  padding: clamp(64px, 9vw, 100px) 24px;
  text-align: center;
  color: #fff;
}
.final-cta-inner { max-width: 640px; margin: 0 auto; position: relative; }
.final-cta .heart { width: 40px; top: -30px; right: 8%; }
.final-cta h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
.final-cta p { margin: 12px 0 28px; opacity: 0.92; }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: #f4e3e7;
  padding: 56px 24px 40px;
  text-align: center;
}
.footer-brand { font-family: var(--font-script); font-size: 2.4rem; font-weight: 700; color: var(--pink-soft); }
.footer-brand em { font-style: normal; font-size: 1.2rem; color: #b89aa1; }
.footer-tag { margin-top: 4px; color: #b89aa1; font-size: 0.92rem; }
.footer-links {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 32px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 4px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--pink-soft); }
.footer-links svg { width: 20px; height: 20px; }
.footer-copy { margin-top: 32px; font-size: 0.82rem; color: #8f737c; }

/* ============ Botón flotante WhatsApp ============ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); }
.wa-float svg { width: 30px; height: 30px; }

/* ============ Animaciones de entrada ============ */
.reveal, .reveal-scale { will-change: transform, opacity; }
.js .reveal, .js .reveal-scale {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 1.05s cubic-bezier(0.165, 0.84, 0.44, 1),
              transform 1.05s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal-scale { transform: scale(1.08); }
.js .reveal.is-visible, .js .reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-scale { opacity: 1; transform: none; transition: none; }
  .float-a, .float-b, .ticker-track { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 440px; margin: 8px auto 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .booking, .coverage, .payments { grid-template-columns: 1fr; }
  .booking-preview { position: static; }
}

@media (max-width: 720px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .ticker { transform: none; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .wa-float { width: 52px; height: 52px; right: 16px; }
}
