/* ============================================================
   SIATINA — Sistema de diseño compartido
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta */
  --orange: #C4784B;
  --orange-deep: #A9603A;
  --bone: #F5F1EA;
  --beige: #E8DCCB;
  --brown: #A9825A;
  --gray: #8A8178;
  --dark: #2C2C2A;

  /* Tipografía */
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Hairlines */
  --line: rgba(169, 130, 90, 0.28);
  --line-soft: rgba(169, 130, 90, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--dark);
  background: var(--bone);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

.section { padding-block: clamp(72px, 11vw, 140px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--orange);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  line-height: 1;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn--dark {
  background: var(--dark);
  color: var(--bone);
}
.btn--dark:hover { background: #1c1c1a; transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--brown);
}
.btn--outline:hover { border-color: var(--orange); color: var(--orange); }

.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  border-bottom: 1px solid transparent;
  transition: color .2s ease;
}
.link-arrow .arrow { transition: transform .25s ease; color: var(--orange); }
.link-arrow:hover { color: var(--orange); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 234, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand .wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  color: var(--dark);
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav > .btn { display: none; }
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  padding-bottom: 3px;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--orange);
  transition: width .25s ease;
}
.nav a:hover { color: var(--orange); }
.nav a:hover::after { width: 100%; }
.nav a.is-active { color: var(--orange); }
.nav a.is-active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 20px; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: .3s; }

/* ---------- Hexagon logo ---------- */
.hex {
  width: 38px; height: 38px;
  display: grid; place-items: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-band {
  background: var(--beige);
  text-align: center;
  padding: 40px var(--gutter);
}
.footer-band p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 30px);
  color: var(--dark);
  font-weight: 500;
}
.site-footer {
  background: var(--dark);
  color: var(--bone);
  padding: 72px var(--gutter) 0;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-grid .wordmark { font-family: var(--serif); font-size: 24px; color: var(--bone); }
.footer-tagline { color: rgba(245,241,234,0.6); font-size: 15px; max-width: 30ch; margin-top: 18px; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer-col a, .footer-col li { font-size: 15px; color: rgba(245,241,234,0.78); transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bar {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid rgba(245,241,234,0.12);
  padding: 26px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(245,241,234,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Image placeholder
   ============================================================ */
.ph {
  position: relative;
  background-color: var(--beige);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(169,130,90,0.10) 0,
    rgba(169,130,90,0.10) 1px,
    transparent 1px,
    transparent 11px
  );
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ph span {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-transform: lowercase;
  padding: 6px 12px;
  background: rgba(245,241,234,0.75);
  border-radius: 2px;
}

/* ---------- Decorative hexagon field (dark CTA) ---------- */
.hex-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  overflow: hidden;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  padding: 14px 20px 14px 16px;
  border-radius: 100px;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(44,44,42,0.18);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer;
}
.wa-float:hover {
  transform: translateY(-2px) scale(1.02);
  background: #1ebe5b;
  box-shadow: 0 16px 38px -8px rgba(37, 211, 102, 0.6), 0 6px 16px rgba(44,44,42,0.22);
}
.wa-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-float .wa-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.wa-float .wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float .wa-pulse { animation: none; }
}
@media (max-width: 560px) {
  .wa-float { padding: 15px; }
  .wa-float .wa-label { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bone);
    padding: 24px var(--gutter) 32px;
    gap: 22px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav.open .btn { display: inline-flex; }
  .nav.open > .btn { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}
