/* ============================================================
   Pedro Aranda — demo de renovación web
   Identidad original: petróleo #0D1F2D + verde #2FED74 + Farsan/Roboto Slab
   Paleta 60-30-10: marfil cálido 60 · petróleo 30 · verde acento 10
   ============================================================ */

:root {
  --navy: #0d1f2d;        /* 30% bandas oscuras */
  --navy-soft: #16303f;
  --ivory: #f5f1ea;       /* 60% fondo claro */
  --white: #ffffff;
  --green: #2fed74;       /* 10% acento (sobre oscuro) */
  --green-ink: #1e7a42;   /* verde legible sobre claro (4.8:1) */
  --clay: #8c5100;        /* acento cálido secundario (5.7:1 sobre marfil) */
  --ink: #0d1f2d;         /* texto sobre claro (14.8:1) */
  --body-ink: #3a4a56;    /* texto cuerpo sobre claro (8.1:1) */
  --paper-dark: #eaf1f4;  /* texto claro sobre oscuro (12.9:1) */
  --muted-dark: #b8c4cc;  /* texto suave sobre oscuro (9.3:1) */
  --line: #e3dccf;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(13, 31, 45, .10);
  --font-display: 'Farsan', cursive;
  --font-slab: 'Roboto Slab', 'Georgia', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-slab);
  font-weight: 300;
  color: var(--body-ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: clamp(1rem, .95rem + .2vw, 1.1rem);
}

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

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }

em.accent, .accent {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--green);
  font-size: 1.08em;
}

/* ---------- bandas a ancho completo ---------- */
.band-dark  { background: var(--navy); color: var(--paper-dark); }
.band-light { background: var(--ivory); }
.band-white { background: var(--white); }
.band-dark h2, .band-dark h3 { color: var(--white); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-slab); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem; min-height: 44px;
  border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.btn-green { background: var(--green); color: var(--navy); }        /* 10.7:1 */
.btn-green:hover { background: #4bff8b; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand img { width: 188px; height: 46px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--paper-dark); text-decoration: none; font-weight: 400; font-size: 1rem; }
.nav a:hover:not(.btn) { color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; }
.nav .btn { padding: .5rem 1.1rem; }
.nav a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.tel-txt { font-variant-numeric: tabular-nums; }
.menu-btn {
  display: none; background: none; border: 0; color: var(--white);
  min-width: 44px; min-height: 44px; cursor: pointer;
}
.menu-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* ---------- hero ---------- */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 0; overflow: hidden; }
.hero-inner { max-width: 900px; }
.eyebrow {
  font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 400; margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--muted-dark); }
.kicker { color: var(--clay); letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; font-weight: 600; margin-bottom: .75rem; }
.hero-title {
  color: var(--white);
  font-size: clamp(2.7rem, 7.5vw, 5.4rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.hero-sub { color: var(--muted-dark); font-size: 1.15rem; max-width: 38rem; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3.5rem; }

.hero-strip { border-top: 1px solid rgba(255,255,255,.12); }
.strip-track {
  display: flex; gap: .9rem; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.4rem max(1.25rem, calc((100vw - 1120px)/2)) 1.6rem;
  scrollbar-width: none;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-track img {
  flex: 0 0 auto; width: clamp(180px, 24vw, 280px);
  aspect-ratio: 7 / 5; object-fit: cover;
  border-radius: var(--radius);
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,.14);
}

/* ---------- filosofía / valores ---------- */
.philosophy { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.philosophy h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 30ch; margin-bottom: 1.1rem; }
.lead { font-size: 1.15rem; max-width: 44rem; }
.lead strong { color: var(--ink); font-weight: 600; }
.values {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem; margin-top: 3rem;
}
.values li { border-top: 2px solid var(--navy); padding-top: 1rem; }
.v-num { font-family: var(--font-display); color: var(--green-ink); font-size: 1.3rem; display: block; margin-bottom: .3rem; }
.values h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.values p { font-size: .95rem; }

/* ---------- servicios (protagonista) ---------- */
.svc-head { padding: clamp(3rem, 7vw, 5.5rem) 0 2.5rem; }
.svc-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .8rem; }
.svc-head .lead a { color: var(--green-ink); font-weight: 600; }
.svc-head .lead a:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 2px; }

.svc-band { padding: clamp(2.8rem, 6vw, 5rem) 0; }
.svc-cat { max-width: 44rem; margin-bottom: 2.2rem; }
.cat-num {
  font-family: var(--font-display); font-size: 2.4rem; line-height: 1;
  color: var(--green-ink); margin-bottom: .4rem;
}
.svc-cat h2, .svc-cat h3 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: .5rem; }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.band-white .card { background: var(--ivory); }
.card img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.card h3, .card h4 { font-size: 1.08rem; padding: 1rem 1.1rem .35rem; }
.card p { padding: 0 1.1rem 1.15rem; font-size: .93rem; }
.card-wide { grid-column: span 2; }
@media (min-width: 821px) {
  .cards > .card:only-child, .cards > .card-wide:only-child { grid-column: 1 / -1; }
}

/* ---------- CTA banda ---------- */
.cta-band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.cta-inner p { color: var(--muted-dark); max-width: 34rem; }
.cta-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Secretos del Agua ---------- */
.sda { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sda-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.sda-chip {
  display: inline-block; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}
.sda h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .8rem; }
.sda-note { color: var(--clay); font-weight: 600; margin-top: .8rem; }
.sda-photo img {
  width: 100%; aspect-ratio: 7 / 5; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* ---------- testimonios ---------- */
.quotes { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.8rem; }
.quotes blockquote {
  background: var(--ivory); border-radius: var(--radius); padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
}
.quotes blockquote p { font-size: 1.02rem; color: var(--ink); font-weight: 400; }
.quotes blockquote footer { margin-top: .8rem; color: var(--clay); font-size: .9rem; font-weight: 600; }

/* ---------- contacto ---------- */
.contact { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; }
.contact h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.c-list { list-style: none; display: grid; gap: 1.4rem; margin-bottom: 1.6rem; }
.c-list li { border-left: 3px solid var(--green-ink); padding-left: 1rem; }
.c-label {
  display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--clay); font-weight: 600; margin-bottom: .15rem;
}
.c-big { font-size: 1.6rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.c-big:hover { color: var(--green-ink); }
.c-list a { color: var(--green-ink); text-decoration: none; font-weight: 500; }
.c-list a:hover { text-decoration: underline; }
.c-list a:focus-visible, .c-big:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 2px; border-radius: 4px; }
.c-note { color: var(--body-ink); font-style: italic; }

.contact-form-wrap {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: .75rem .9rem; background: var(--white); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green-ink);
}
.form-ok {
  margin-top: 1rem; background: #e9f9f0; border: 1px solid var(--green-ink);
  color: #14532d; border-radius: 10px; padding: .8rem 1rem; font-weight: 500;
}

/* ---------- footer ---------- */
.site-footer { padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.f-brand img { width: 170px; height: 42px; margin-bottom: 1rem; }
.f-brand p { color: var(--muted-dark); max-width: 26rem; }
.f-col h2 { font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: .9rem; }
.f-col p { margin-bottom: .55rem; }
.f-col a { color: var(--paper-dark); text-decoration: none; }
.f-col a:hover { color: var(--green); }
.f-col a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.f-col .btn { margin-top: .6rem; }
address { font-style: normal; color: var(--paper-dark); }
.f-hours { color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.2rem 0 1.6rem;
  color: var(--muted-dark); font-size: .85rem;
}

/* ---------- CTA sticky móvil ---------- */
.mobile-cta { display: none; }

/* ---------- reveals (solo con JS activo) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sda-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .footer-legal { padding-bottom: 6.8rem; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.15);
    padding: .6rem 1.25rem 1.2rem; box-shadow: 0 18px 30px rgba(0,0,0,.25);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--green); padding: 8px; gap: 8px;
  }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; border-radius: 12px;
    font-weight: 600; text-decoration: none;
  }
  .mobile-cta a:first-child { background: var(--navy); color: var(--white); }
  .mobile-cta a:last-child { background: var(--navy); color: var(--green); }
  .mobile-cta a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
}

@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .quote-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 3rem; }
}

/* ---------- rendimiento ---------- */
.svc-band, .quotes, .sda { content-visibility: auto; contain-intrinsic-size: auto 900px; }
