/* ============================================
   ARCOSUY · Equipamiento Deportivo
   Estilo: Light premium · Sand / Beige (con presencia)
   ============================================ */

:root {
  --bg: #e6dfd0;
  --bg-2: #f0eadb;
  --bg-3: #d6cdb8;
  --surface: #faf5e8;
  --line: #cdc3ac;
  --text: #1c1a14;
  --text-dim: #5a513f;
  --text-mute: #847b66;
  --accent: #136b65;          /* cyan ARCOSUY oscurecido para contraste */
  --accent-dark: #0a4f4a;
  --accent-glow: rgba(19, 107, 101, 0.20);
  --max: 1200px;
  --pad: clamp(16px, 4vw, 32px);
  --r-card: 6px;
  --r-pill: 999px;

  --f-display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 13, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--accent-dark);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,13,16,0.4) 0%, rgba(10,13,16,0.92) 100%),
    url('assets/p02-img2.jpeg') center / cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--accent-glow), transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--pad) 60px;
  width: 100%;
}
.hero-kicker {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: 900px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  gap: clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
  max-width: 720px;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stats span {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--r-pill);
  transition: all 0.2s;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost-light {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.2);
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  transition: 0.2s;
}
.btn-ghost-light:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ SECTIONS ============ */
.section {
  padding: clamp(60px, 8vw, 110px) 0;
  background: var(--bg);
}
.section-alt {
  background: var(--bg-2);
}
.section-dark {
  background:
    linear-gradient(135deg, var(--bg-3) 0%, var(--bg) 100%);
  position: relative;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  opacity: 0.4;
}
.section-dark > * { position: relative; }

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.kicker {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.kicker.accent-light { color: var(--accent); }
.section h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.section h3 {
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section .lead {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============ MODELOS PILLS ============ */
.modelos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.modelos span {
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ============ GRIDS ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.grid-feature .feature-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.grid-feature .feature-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.5s;
}
.grid-feature .feature-img:hover img { transform: scale(1.02); }
.feature-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

/* ============ CARD IMG ============ */
.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* sin recortes — la imagen completa entra al cuadro */
  padding: 8px;
  transition: transform 0.5s, filter 0.3s;
}
.card-img:hover img {
  transform: scale(1.03);
}
.grid-3-labeled .card-img figcaption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 14px;
  font-size: 14px;
  letter-spacing: 0.1em;
  border-radius: 3px;
}

/* ============ TWO-COL (cerramientos) ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.two-col:last-child { margin-bottom: 0; }
.two-col-reverse .two-col-text { order: 2; }
.two-col-reverse .two-col-imgs { order: 1; }
.two-col-text h3 { color: var(--text); }
.two-col-text p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
}
.two-col-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============ PROD CARD (equipamiento técnico) ============ */
.prod-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.3s;
}
.prod-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.prod-card figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.prod-card figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.prod-body {
  padding: 28px;
}
.prod-body h3 {
  margin-bottom: 12px;
  color: var(--text);
}
.prod-body p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ CTA GRID ============ */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-text h2 { color: var(--text); }
.cta-text p {
  color: var(--text-dim);
  font-size: 17px;
  margin-top: 8px;
  max-width: 460px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.btn-wa { background: #25d366; color: white; }
.btn-wa:hover { background: #1fb957; box-shadow: 0 8px 28px rgba(37,211,102,0.3); }

/* ============ FOOTER ============ */
.footer {
  background: #06080a;
  padding: 60px 0 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
}
.footer-brand img {
  height: 36px;
  margin-bottom: 14px;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-cols h4 {
  font-family: var(--f-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-cols a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px var(--pad);
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 99;
  transition: transform 0.2s;
}
.wa-float:hover {
  transform: scale(1.08);
}

/* ============ FADE-IN ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE — TABLET ============ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--pad);
    gap: 0;
    transform: translateY(-150%);
    transition: transform 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta {
    text-align: center;
    margin-top: 10px;
    padding: 14px 18px !important;
  }

  /* Hamburger animation when open */
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .grid-3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid-feature {
    grid-template-columns: 1fr;
  }
  .grid-feature .feature-img { aspect-ratio: 4 / 3; }
  .feature-side { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }

  .two-col, .two-col-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .two-col-reverse .two-col-text { order: 0; }
  .two-col-reverse .two-col-imgs { order: 1; }

  .cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ RESPONSIVE — MOBILE ============ */
@media (max-width: 640px) {
  .nav-inner { padding: 12px 16px; }
  .nav-logo img { height: 28px; }

  /* HERO mobile */
  .hero { min-height: auto; padding-top: 60px; padding-bottom: 30px; }
  .hero-inner { padding: 50px 16px 40px; }
  .hero-kicker {
    font-size: 11px;
    letter-spacing: 0.15em;
    padding: 5px 12px;
    margin-bottom: 14px;
  }
  .hero-title {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 0.95;
    margin-bottom: 18px;
  }
  .hero-sub {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 28px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 40px;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }
  .hero-stats {
    gap: 14px;
    padding-top: 22px;
  }
  .hero-stats strong { font-size: 22px; }
  .hero-stats span { font-size: 10px; letter-spacing: 0.06em; }

  /* SECTIONS mobile */
  .section { padding: 50px 0; }
  .section-head { margin-bottom: 28px; }
  .section h2 { font-size: clamp(28px, 8vw, 38px); }
  .section h3 { font-size: clamp(20px, 6vw, 24px); }
  .section .lead { font-size: 14.5px; line-height: 1.6; }
  .kicker { font-size: 11px; letter-spacing: 0.16em; margin-bottom: 10px; }

  /* GRIDS mobile */
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .feature-side { grid-template-columns: 1fr; }
  .two-col-imgs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .modelos { gap: 8px; margin-bottom: 28px; }
  .modelos span { padding: 6px 13px; font-size: 13px; }

  /* PROD CARD mobile */
  .prod-body { padding: 20px; }
  .prod-body h3 { margin-bottom: 8px; }
  .prod-body p { font-size: 14px; }

  /* CARD captions */
  .grid-3-labeled .card-img figcaption {
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 12px;
  }

  /* CTA actions mobile */
  .cta-actions {
    align-items: stretch;
  }
  .cta-actions .btn,
  .cta-actions .btn-ghost-light {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* TWO-COL paddings */
  .two-col { padding: 20px 0; }
  .two-col-text p { font-size: 14.5px; }

  /* FOOTER mobile */
  .footer { padding: 40px 0 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-cols h4 { font-size: 13px; margin-bottom: 12px; }
  .footer-cols a { font-size: 13px; padding: 4px 0; }
  .footer-bottom { font-size: 12px; padding: 18px 16px; }

  /* WA float */
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ============ MUY PEQUEÑO (iPhone SE, etc) ============ */
@media (max-width: 380px) {
  .hero-title { font-size: 32px; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stats > div { flex: 1 1 calc(50% - 7px); }
  .footer-cols { grid-template-columns: 1fr; gap: 18px; }
}


/* =====================================================
   LIGHT MODE OVERRIDES (Gris Perla)
   ===================================================== */
/* ============================================
   Overrides comunes para modo claro
   ============================================ */

body {
  background: var(--bg);
  color: var(--text);
}

/* NAV claro */
.nav {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: white !important;
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle span { background: var(--text); }

/* HERO con overlay claro */
.hero-bg {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(245,246,248,0.92) 100%),
    url('assets/p02-img2.jpeg') center / cover no-repeat;
}
.hero-bg::after {
  background: radial-gradient(ellipse at top right, var(--accent-glow), transparent 60%);
  opacity: 0.6;
}
.hero-title { color: var(--text); }
.hero-title .accent { color: var(--accent); }
.hero-sub { color: var(--text-dim); }
.hero-stats { border-top-color: var(--line); }
.hero-stats strong { color: var(--accent); }
.hero-stats span { color: var(--text-dim); }
.hero-kicker {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255,255,255,0.6);
}

/* BUTTONS */
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-light { color: var(--text); border: 2px solid var(--line); background: var(--surface); }
.btn-ghost-light:hover { border-color: var(--accent); color: var(--accent); }

/* SECTIONS */
.section { background: var(--bg); }
.section-alt { background: var(--bg-2); }
.section h2 { color: var(--text); }
.section h3 { color: var(--text); }
.section .lead { color: var(--text-dim); }
.kicker { color: var(--accent); }

/* SECTION DARK → ahora es un bloque oscuro de contraste para el CTA */
.section-dark {
  background: linear-gradient(135deg, #0d1b2a 0%, #142336 100%);
  color: #f0f2f5;
}
.section-dark .cta-text h2 { color: #ffffff; }
.section-dark .cta-text p { color: #a3b1c4; }
.section-dark .kicker { color: var(--accent); }
.section-dark .btn-ghost-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.2);
}
.section-dark .btn-ghost-light:hover { border-color: var(--accent); color: var(--accent); }

/* MODELOS pills */
.modelos span {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

/* CARDS */
.card-img {
  background: var(--surface);
  border: 1px solid var(--line);
}
.prod-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(60, 50, 30, 0.08);
}
.prod-card:hover { border-color: var(--accent); }
.prod-body h3 { color: var(--text); }
.prod-body p { color: var(--text-dim); }
.grid-3-labeled .card-img figcaption { background: var(--accent); color: white; }

/* TWO-COL */
.two-col { border-top-color: var(--line); }
.two-col-text h3 { color: var(--text); }
.two-col-text p { color: var(--text-dim); }

/* FOOTER oscuro de contraste */
.footer {
  background: #0d1b2a;
  border-top: none;
}
.footer-brand p { color: #a3b1c4; }
.footer-cols h4 { color: white; }
.footer-cols a { color: #a3b1c4; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  border-top-color: rgba(255,255,255,0.08);
  color: #7282a0;
}
