/* ==========================================================================
   Pausa Home Blanquería — Landing
   Paleta y tipografías según design/PALETA_PHOK.pdf y design/TIPOGRAFIAS_PHOK.pdf
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Paleta oficial PHOK */
  --color-sand: #BB927E;   /* BB927E */
  --color-rose: #9D6563;   /* 9D6563 */
  --color-aqua: #4AAFC1;   /* 4AAFC1 */
  --color-teal: #277A85;   /* 277A85 — color principal */

  /* Neutros (derivados para texto y superficies) */
  --color-text: #1F1F1F;
  --color-muted: #5F5F5F;
  --color-gray: #737373;   /* tono del "BLANQUERIA" del logo */
  --color-white: #FFFFFF;
  --color-surface: #F7F3F0; /* blanco cálido, derivado de sand */

  /* Tipografía */
  --font-main: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Orbitron", "Raleway", sans-serif;

  /* Layout */
  --gutter: 16px;
  --max-width: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 31, 31, 0.08);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--color-teal); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--color-aqua); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-teal);
  color: var(--color-white);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: var(--gutter); top: 8px; }

.section { padding-block: clamp(56px, 9vw, 104px); }
.section-alt { background: var(--color-surface); }
.section-teal { background: var(--color-teal); color: var(--color-white); }
.section-teal h2 { color: var(--color-white); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-sub { color: var(--color-muted); margin: 0; }

/* Etiqueta superior estilo Orbitron (fuente para destacados) */
.eyebrow {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-bottom: 12px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }

.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--color-muted); max-width: 52ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-primary { background: var(--color-teal); color: var(--color-white); }
.btn-primary:hover { background: #1f646d; }
.btn-ghost { border-color: var(--color-teal); color: var(--color-teal); background: transparent; }
.btn-ghost:hover { background: var(--color-teal); color: var(--color-white); }
.btn-light { background: var(--color-white); color: var(--color-teal); }
.btn-light:hover { background: var(--color-surface); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgba(31, 31, 31, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.brand img { height: 64px; width: auto; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px var(--gutter) 24px;
  background: var(--color-white);
  border-bottom: 1px solid rgba(31, 31, 31, 0.08);
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: flex; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.site-nav a:not(.btn) { color: var(--color-text); text-decoration: none; font-weight: 600; }
.site-nav a:not(.btn):hover { color: var(--color-teal); }
.site-nav .btn { align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(72px, 14vw, 150px);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(74, 175, 193, 0.22), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(187, 146, 126, 0.28), transparent 60%),
    var(--color-surface);
  text-align: center;
  overflow: hidden;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero .lead { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------- Grids y cards ---------- */
.grid { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  border-radius: var(--radius);
  padding: 28px 24px;
  color: var(--color-white);
  box-shadow: var(--shadow);
}
.card h3 { color: var(--color-white); }
.card p { margin: 0; opacity: 0.95; }
.card-sand { background: var(--color-sand); }
.card-rose { background: var(--color-rose); }
.card-aqua { background: var(--color-aqua); }
.card-teal { background: var(--color-teal); }

.card-category { min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; }

/* ---------- Nosotros ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.brand-figure {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.brand-figure img { width: min(100%, 360px); }

/* ---------- Productos ---------- */
.product {
  background: var(--color-white);
  border: 1px solid rgba(31, 31, 31, 0.08);
  border-radius: var(--radius);
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
}
.product h3 { margin-top: 16px; margin-bottom: 4px; }
.product-meta { color: var(--color-muted); font-size: 0.92rem; margin-bottom: 14px; }
.product-media {
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: var(--color-surface);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-arrow {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-teal);
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Contacto ---------- */
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .lead { color: rgba(255, 255, 255, 0.9); margin-bottom: 28px; }
.contact-data {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
}
.contact-data a { color: var(--color-white); font-weight: 700; }
.contact-data span {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid rgba(31, 31, 31, 0.08);
  padding-block: 40px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-inner img { width: 140px; }
.footer-inner p { color: var(--color-muted); font-size: 0.85rem; margin: 0; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { flex-direction: row; gap: 28px; }
  .site-nav .btn { align-self: auto; }

  .split { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
