/* Hiloa — hoja de estilos del sitio público (hiloa.care) */

:root {
  --bg: #F6F4F1;
  --ink: #1F3947;
  --ink-soft: #436B87;
  --ink-soft-hover: #1F3947;
  --sand: #D9D2C6;
  --gold: #CF9A55;
  --green: #639679;
  --muted: #8A9098;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--ink);
}

a { color: var(--ink-soft); text-decoration: none; }
a:hover { color: var(--ink-soft-hover); }
::selection { background: var(--sand); }

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

.is-hidden { display: none; }

button { font-family: 'Inter', sans-serif; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer-social-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sand);
}
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo { height: 34px; width: auto; object-fit: contain; }
.header-cta {
  background: var(--gold);
  color: #FFFFFF;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}
.header-cta:hover { color: #FFFFFF; opacity: 0.92; }

/* ---------- Hero ---------- */
#hero-section {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 560px;
  max-height: 760px;
  overflow: hidden;
}
#hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(246,244,241,0.5) 0%, rgba(246,244,241,0.15) 28%, rgba(246,244,241,0) 42%);
}
#hero-text-wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
}
#hero-text-wrap .hero-copy { max-width: 520px; }
.hero-copy h1 {
  font-size: 44px;
  line-height: 1.22;
  font-weight: 600;
  margin: 0 0 26px;
  letter-spacing: -0.01em;
}
.hero-copy p {
  font-size: 19px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.hero-copy p:last-child { margin: 0; }
.hero-copy .brand { color: var(--green); }

/* ---------- Generic content sections ---------- */
.section {
  background: var(--bg);
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.section--reverse { grid-template-columns: 1.1fr 0.9fr; }
.section__media { border-radius: 10px; overflow: hidden; }
.section__media img { width: 100%; height: 420px; object-fit: cover; }
.section__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.section__eyebrow--problema { color: var(--ink-soft); }
.section__eyebrow--que-es { color: var(--green); }
.section h2 { font-size: 32px; line-height: 1.3; font-weight: 600; margin: 0 0 24px; }
.section p.body { font-size: 17px; line-height: 1.8; font-weight: 400; color: var(--ink); margin: 0; text-wrap: pretty; }

/* ---------- Puente conceptual ---------- */
.bridge {
  background: var(--sand);
  padding: 120px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bridge p {
  max-width: 600px;
  text-align: center;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

/* ---------- Origen ---------- */
.origin {
  position: relative;
  background: var(--ink);
  padding: 96px 32px 160px;
  overflow: hidden;
}
.origin__blobs { position: absolute; inset: 0; pointer-events: none; }
#origin-blob-1 { position: absolute; left: -6%; top: 10%; width: 340px; height: 340px; border-radius: 50%; background: var(--ink-soft); filter: blur(70px); opacity: 0.35; }
#origin-blob-2 { position: absolute; right: 8%; top: 30%; width: 280px; height: 280px; border-radius: 50%; background: var(--green); filter: blur(70px); opacity: 0.3; }
#origin-blob-3 { position: absolute; left: 35%; bottom: -10%; width: 300px; height: 300px; border-radius: 50%; background: var(--gold); filter: blur(80px); opacity: 0.28; }
.origin__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; opacity: 0.9; }
.origin__grid {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.origin__media { border-radius: 10px; overflow: hidden; height: 440px; }
.origin__media img { width: 100%; height: 100%; object-fit: cover; }
.origin__eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.origin p.body { font-size: 17px; line-height: 1.85; font-weight: 400; color: var(--bg); margin: 0 0 20px; white-space: pre-line; text-wrap: pretty; }
.origin p.body.is-extra { animation: fadeIn 0.4s ease; }
.origin-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid rgba(246,244,241,0.25);
  padding: 20px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
}
.origin-toggle__label { font-size: 15px; font-weight: 600; color: var(--bg); }
.origin-toggle__symbol { font-size: 20px; font-weight: 400; color: var(--gold); flex-shrink: 0; }
.origin .signature { font-size: 15px; font-weight: 600; color: var(--gold); margin: 24px 0 0; }
.origin .signature a { color: var(--bg); text-decoration: underline; }
.origin .signature a:hover { color: var(--gold); }

/* ---------- Formulario ---------- */
.form-section {
  background: var(--bg);
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px 100px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.form-section__media { border-radius: 10px; overflow: hidden; }
.form-section__media img { width: 100%; height: 440px; object-fit: cover; }

.form-thanks { padding: 40px; background: #FFFFFF; border-radius: 10px; animation: fadeIn 0.4s ease; }
.form-thanks h2 { font-size: 26px; font-weight: 600; margin: 0 0 14px; }
.form-thanks p { font-size: 16px; line-height: 1.7; color: var(--ink); margin: 0; }
.form-thanks.is-hidden, .form-panel.is-hidden { display: none; }

.form-panel h2 { font-size: 32px; font-weight: 600; margin: 0 0 14px; }
.form-panel > p.lead { font-size: 17px; line-height: 1.7; color: var(--ink); margin: 0 0 32px; }

.choice-list { display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; }
.choice-list label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid var(--sand);
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
}
.choice-list input[type="radio"] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink-soft); }

.field-email {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--sand);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--ink);
  margin: 0 0 8px;
}
.field-error {
  font-size: 13px;
  color: #B3494A;
  margin: 0 0 16px;
  min-height: 16px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 0 18px;
  transition: opacity 0.15s ease;
}
.submit-btn:disabled { opacity: 0.5; cursor: default; }

.form-fineprint { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; }
.form-note { font-size: 15px; line-height: 1.7; color: var(--ink); margin: 0; padding-top: 24px; border-top: 1px solid var(--sand); }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- FAQ ---------- */
.faq { background: var(--sand); padding: 96px 32px; }
.faq__inner { max-width: 820px; margin: 0 auto; }
.faq h2 { font-size: 28px; font-weight: 600; margin: 0 0 44px; text-align: center; }
.faq-item { border-bottom: 1px solid var(--muted); }
.faq-item__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
}
.faq-item__q-label { font-size: 17px; font-weight: 600; color: var(--ink); }
.faq-item__symbol { font-size: 20px; font-weight: 400; color: var(--ink-soft); flex-shrink: 0; }
.faq-item__a { font-size: 16px; line-height: 1.75; color: var(--ink); margin: 0 0 24px; padding-right: 32px; text-wrap: pretty; }
.faq-item__a.is-hidden { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); padding: 48px 32px; }
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__logo { height: 26px; width: auto; object-fit: contain; opacity: 0.85; }
.site-footer__links { display: flex; align-items: center; gap: 20px; }
.site-footer__links p { font-size: 13px; color: var(--muted); margin: 0; }
.site-footer__links span { font-size: 13px; color: var(--muted); }
.site-footer__links a { font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .section, .form-section { grid-template-columns: 1fr !important; gap: 36px !important; }
  .origin__grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .section, .bridge, .origin, .form-section, .faq { padding: 64px 22px !important; }
  #hero-section { height: auto !important; min-height: 0 !important; max-height: none !important; display: block !important; background: var(--bg); }
  #hero-img { position: relative !important; width: 100% !important; height: auto !important; aspect-ratio: 1737 / 905; }
  #hero-scrim { display: none !important; }
  #hero-text-wrap { position: relative !important; height: auto !important; padding: 32px 22px 44px !important; }
  #hero-text-wrap .hero-copy { max-width: 100% !important; }
  .origin__wave { height: 70px !important; }
  #origin-blob-1, #origin-blob-2, #origin-blob-3 { width: 180px !important; height: 180px !important; }
  .header-cta { padding: 14px 20px !important; }
}
