/* =========================================================
   FORORO DON RAMÓN — Sistema de diseño
   Paleta y tipografía oficiales del brandboard.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  /* --- PALETA OFICIAL (brandboard) --- */
  --terracota:   #C25131;   /* color principal — logo, botones */
  --terracota-d: #a8431f;   /* hover de botones */
  --azul:        #007298;   /* confianza, secciones B2B */
  --azul-d:      #005f80;
  --mostaza:     #DA8824;   /* acento cálido, solo detalles/bloques */
  --crema:       #F4F1E2;   /* fondo base cálido */
  --crema-d:     #ebe7d3;   /* variante para alternar secciones */
  --tinta:       #3a2a20;   /* texto principal (marrón muy oscuro, no negro) */
  --tinta-suave: #6b5a4e;   /* texto secundario */
  --blanco:      #ffffff;

  /* --- TIPOGRAFÍA --- */
  /* Oswald: alternativa web gratuita a ProsaGT (condensada, mismo carácter) */
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --texto:   'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- LAYOUT --- */
  --ancho-max: 1140px;
  --radio: 8px;
  --sombra: 0 6px 24px rgba(58,42,32,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--texto);
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--terracota);
}

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

/* ---------- MENÚ FIJO ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,241,226,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--terracota);
}
.nav__inner {
  max-width: var(--ancho-max); margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { height: 48px; width: auto; }
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  text-decoration: none;
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--tinta);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--terracota); }
.nav__toggle {
  display: none; background: none; border: none;
  font-size: 1.6rem; cursor: pointer; color: var(--terracota);
}

/* ---------- BOTONES ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border: none; border-radius: var(--radio);
  font-size: 1.05rem; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracota); color: var(--crema); }
.btn--primary:hover { background: var(--terracota-d); }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1ebe5a; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--crema);
  padding: 4rem 1.5rem 5rem;
}
.hero__inner {
  max-width: var(--ancho-max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem; align-items: center;
}
.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
}
.hero__title span { color: var(--azul); display: block; }
.hero__subtitle {
  font-size: 1.2rem; color: var(--tinta-suave);
  margin-bottom: 2rem; max-width: 480px;
}
.hero__personaje { width: 100%; max-width: 460px; margin: 0 auto; }
.hero__sello {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--mostaza); color: var(--tinta);
  font-family: var(--display); text-transform: uppercase;
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.05em;
  padding: 0.35rem 0.9rem; border-radius: 50px; margin-bottom: 1.25rem;
}

/* ---------- SECCIONES ---------- */
.section { padding: 4.5rem 1.5rem; }
.section--azul { background: var(--azul); }
.section--azul h2 { color: var(--crema); }
.section--crema-d { background: var(--crema-d); }
.section__inner { max-width: var(--ancho-max); margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.85rem; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 600;
  color: var(--mostaza); margin-bottom: 0.6rem;
}
.section h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.2rem; }
.section p { color: var(--tinta-suave); margin-bottom: 1rem; max-width: 680px; }

/* Sección azul: texto claro (va después para ganar en especificidad/orden) */
.section.section--azul p { color: #f4f1e2; }
.section.section--azul .eyebrow { color: #ffc56e; }

/* ---------- PRODUCTO ---------- */
.producto__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem; align-items: center;
}
.producto__img {
  margin: 0 auto; max-height: 520px; width: auto;
  border-radius: var(--radio); box-shadow: var(--sombra);
}
.producto__features { list-style: none; margin-top: 1.25rem; }
.producto__features li {
  padding: 0.5rem 0 0.5rem 2rem; position: relative;
  color: var(--tinta); font-weight: 500;
}
.producto__features li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--terracota); font-weight: 700;
}

/* ---------- BANDA DE PATRÓN (signature) ---------- */
.banda-patron {
  height: 110px;
  background: url('../assets/patron.png') repeat-x center;
  background-size: auto 110px;
  border-top: 3px solid var(--terracota);
  border-bottom: 3px solid var(--terracota);
}

/* ---------- HISTORIA ---------- */
.historia { max-width: 760px; }

/* ---------- VIDEO ---------- */
.video {
  position: relative; width: 100%; max-width: 820px;
  aspect-ratio: 16 / 9; margin-top: 1.5rem;
  background: var(--tinta); border-radius: var(--radio);
  overflow: hidden; box-shadow: var(--sombra);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--crema); padding: 1rem; gap: 0.5rem;
}
.video__placeholder strong { font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; }

/* ---------- FORMULARIO ---------- */
.form {
  max-width: 580px; margin-top: 1.75rem;
  background: var(--crema); padding: 2rem;
  border-radius: var(--radio); box-shadow: var(--sombra);
}
.form__row { margin-bottom: 1.1rem; }
.form__row label {
  display: block; font-size: 0.9rem; font-weight: 600;
  margin-bottom: 0.35rem; color: var(--tinta);
}
.form__row input, .form__row textarea {
  width: 100%; padding: 0.75rem; font-size: 1rem;
  font-family: inherit; color: var(--tinta);
  border: 1.5px solid #d8d2bd; border-radius: var(--radio);
  background: var(--blanco); transition: border-color 0.2s;
}
.form__row input:focus, .form__row textarea:focus {
  outline: none; border-color: var(--terracota);
  box-shadow: 0 0 0 3px rgba(194,81,49,0.15);
}
.form__note { font-size: 0.85rem; color: var(--tinta-suave); margin-top: 0.85rem; }

/* ---------- FOOTER ---------- */
.footer { background: var(--terracota); color: var(--crema); padding: 3.5rem 1.5rem 1.5rem; }
.footer__inner {
  max-width: var(--ancho-max); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2.5rem;
}
.footer__logo { height: 64px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.95; }
.footer h3 { color: var(--crema); margin-bottom: 1.1rem; font-size: 1.4rem; }
.footer__contact .btn { margin-bottom: 0.5rem; }
.footer__email { margin-top: 1rem; }
.footer__email a { color: var(--crema); text-decoration: underline; }
.footer__bottom {
  max-width: var(--ancho-max); margin: 2.5rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(244,241,226,0.25);
  font-size: 0.85rem; text-align: center; opacity: 0.85;
}

/* ---------- BOTÓN FLOTANTE WHATSAPP ---------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px;
  background: #25d366; color: #fff;
  font-family: var(--display); text-transform: uppercase;
  font-weight: 600; letter-spacing: 0.03em;
  padding: 0.85rem 1.3rem; border-radius: 50px;
  text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 200; transition: transform 0.15s;
}
.whatsapp-float:hover { transform: scale(1.05); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .hero__inner, .producto__grid { grid-template-columns: 1fr; }
  .hero__personaje { max-width: 320px; order: -1; }
  .producto__img { max-height: 420px; }
}
@media (max-width: 768px) {
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--crema); flex-direction: column;
    padding: 1rem 1.5rem; gap: 1rem;
    border-bottom: 2px solid var(--terracota);
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: block; }
}

/* ---------- ACCESIBILIDAD ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
