/* Cuyo Visual — Sistema base
   Tipografía Raleway usada como referencia de trabajo (no confirmada como oficial, ver Manual de Marca §8.6). */

:root {
  --navy: #132334;
  --navy-soft: #1c3145;
  --teal: #0C7E84;
  --teal-light: #4fb0b4;
  --cobre: #B87332;
  --bone: #F4F4F4;
  --white: #ffffff;
  --ink: #132334;

  --font: 'Raleway', -apple-system, 'Segoe UI', sans-serif;

  --container: 1160px;
  --radius: 18px;
  --gap: clamp(1.5rem, 3vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3, h4 {
  font-family: var(--font);
  margin: 0 0 0.6em;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--teal);
  margin-bottom: 0.9em;
}

p { margin: 0 0 1em; font-weight: 400; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(244,244,244,0.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.6rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.topbar a { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar a:hover { color: var(--teal-light); }
.topbar svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar .topbar-location { display: inline-flex; }

@media (max-width: 560px) {
  .topbar .wrap { justify-content: center; }
  .topbar .topbar-location { display: none; }
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 244, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(19, 35, 52, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img { height: 38px; width: auto; }

nav.links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.1rem);
}

nav.links a {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav.links a:hover,
nav.links a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-teal { background: var(--teal); color: var(--white); border: none; cursor: pointer; }
.btn-teal:hover { background: #0a696e; transform: translateY(-1px); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-cobre { background: var(--cobre); color: var(--white); }
.btn-cobre:hover { background: #a2652c; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--bone);
  color: var(--bone);
}
.btn-outline:hover { background: var(--bone); color: var(--navy); }

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--bone); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Sections ---------- */
section { position: relative; }

.section-light { background: var(--bone); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-white { background: var(--white); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-dark {
  background: var(--navy);
  color: var(--bone);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--teal-light); }

.divider-wave {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -1px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--bone);
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(12,126,132,0.35), transparent 70%);
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -6%;
  width: 620px;
  max-width: 60vw;
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--gap);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 { color: var(--white); }
.hero .lead { color: rgba(244,244,244,0.82); max-width: 46ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(150deg, var(--navy-soft), var(--navy) 60%);
  border: 1px solid rgba(244,244,244,0.12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

.hero-visual-badge {
  width: 96px;
  position: absolute;
  left: 1.6rem;
  bottom: 1.6rem;
  z-index: 1;
  opacity: 0.9;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(12,126,132,0.4);
}

/* ---------- Wave divider ----------
   The strip's own background is the NEXT section's color; the SVG draws
   three overlapping wavy layers (cobre, teal, navy) on top of it, with the
   navy layer matching the hero/page-hero background so the seam is invisible. */
.wave-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(46px, 8vw, 90px);
  z-index: 1;
  line-height: 0;
}
.wave-strip.on-white { background: var(--white); }
.wave-strip.on-bone { background: var(--bone); }
.wave-strip svg { display: block; width: 100%; height: 100%; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.4rem;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.9rem;
  border: 1px solid rgba(19,35,52,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(19,35,52,0.09); }

.card-dark {
  background: var(--navy-soft);
  color: var(--bone);
  border: 1px solid rgba(244,244,244,0.08);
}
.card-dark h3 { color: var(--white); }

.pillar-num {
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--cobre);
  margin-bottom: 0.6em;
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(12,126,132,0.12);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.icon-badge svg { width: 22px; height: 22px; }

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
}

/* ---------- Table (es/no es) ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(19,35,52,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-col { background: var(--white); padding: 1.6rem 1.8rem; }
.compare-col h4 {
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.compare-col.yes h4 { color: var(--teal); }
.compare-col.no h4 { color: var(--cobre); }
.compare-col ul { margin: 0; padding-left: 1.1rem; }
.compare-col li { margin-bottom: 0.6rem; }

/* ---------- Quote / stat ---------- */
.statement {
  border-left: 4px solid var(--teal);
  padding-left: 1.6rem;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 300;
  color: var(--navy);
}
.section-dark .statement { color: var(--white); border-left-color: var(--cobre); }

/* ---------- Logo strip (casos) ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.logo-chip {
  background: var(--white);
  border: 1px solid rgba(19,35,52,0.08);
  border-radius: 12px;
  padding: 0.9rem 1.3rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  color: var(--navy);
}
.logo-card {
  background: var(--white);
  border: 1px solid rgba(19,35,52,0.08);
  border-radius: 12px;
  padding: 1.2rem 1.8rem;
  display: flex;
  align-items: center;
}
.logo-card img { height: 52px; width: auto; }

.case-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.case-logo { height: 40px; width: auto; max-width: 90px; flex-shrink: 0; }
.case-heading h3 { margin: 0; }

/* ---------- Timeline / steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.3rem; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
}

/* ---------- Form ---------- */
.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(19,35,52,0.15);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.hidden-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-status {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status-ok { color: var(--teal); }
.form-status-error { color: var(--cobre); }
.form-note {
  margin: -0.15rem 0 1.2rem;
  font-size: 0.82rem;
  color: rgba(19,35,52,0.72);
}
.diagnostic-form {
  background: var(--bone);
  border: 1px solid rgba(19,35,52,0.10);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.diagnostic-form .form-note { margin: 0.9rem 0 0; }

.contact-panel {
  background: var(--navy);
  color: var(--bone);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.contact-panel .eyebrow { color: var(--teal-light); }
.contact-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(244,244,244,0.1);
}
.contact-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-row .icon-badge { background: rgba(244,244,244,0.1); color: var(--teal-light); flex-shrink: 0; }
.contact-row strong { display: block; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); margin-bottom: 0.2rem; }
.placeholder-note {
  font-size: 0.75rem;
  color: var(--cobre);
  font-style: italic;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy);
  color: rgba(244,244,244,0.75);
  padding: 3.5rem 0 1.8rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244,244,244,0.12);
}
.footer-brand { display: flex; align-items: center; margin-bottom: 1.2rem; }
.footer-brand img { height: 32px; width: auto; }
footer.site h5 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  font-weight: 800;
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 0.65rem; font-size: 0.9rem; }
footer.site a:hover { color: var(--teal-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.8rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--bone);
  padding: clamp(3.2rem, 7vw, 5rem) 0 clamp(3.2rem, 7vw, 5.5rem);
  overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { max-width: 60ch; color: rgba(244,244,244,0.8); }
.page-hero > .wrap { position: relative; z-index: 1; }

.page-hero-watermark {
  position: absolute;
  top: 50%;
  right: -4%;
  width: 420px;
  max-width: 42vw;
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Utilities ---------- */
.mt-lg { margin-top: 3rem; }
.center { text-align: center; }
.max-w { max-width: 62ch; margin-left: auto; margin-right: auto; }
.cta-band {
  background: linear-gradient(120deg, var(--teal), #0a5c61);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band p { margin: 0; opacity: 0.9; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 380px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  nav.links { display: none; }
  .nav-toggle { display: flex; }
  header.site.open nav.links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bone);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(19,35,52,0.08);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .btn-header { display: none; }
}
