﻿

:root {
  --color-primary:     #222831;
  --color-primary-700: #14181C;
  --green-500: #4EAD1F;
  --green-600: #4EAD1F;
  --green-700: #377916;
  --blue-500: #2C6ECB;
  --ochre-500: #F0A202;
  --terracotta-500: #E4572E;
  --swatch-gradient: linear-gradient(90deg, var(--green-500), var(--blue-500), var(--ochre-500), var(--terracotta-500));

  --color-ink:    #000000;
  --color-muted:  #6B7280;
  --color-surface:     #FFFFFF;
  --color-surface-alt: #FFFFFF;
  --color-tint: #F6F3EC;
  --color-border: #E3E5E2;
  --color-whatsapp: #25D366;
  --color-error: #C0392B;

  --overlay-hero: linear-gradient(180deg, rgba(20,22,25,.12) 0%, rgba(0, 0, 0, 0.6) 100%);

  --container: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(21,24,28,.06), 0 4px 14px rgba(21,24,28,.05);
  --shadow-md: 0 12px 32px rgba(21,24,28,.12);

  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;

  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: #000; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
p { color: var(--color-ink); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--color-muted); line-height: 1.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--green-700);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--swatch-gradient); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark { background: var(--color-tint); color: var(--color-ink); }
.section--dark h2, .section--dark h3 { color: var(--color-ink); }
.section--alt { background: var(--color-surface-alt); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 1rem; }

.btn { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; border-radius: var(--radius-pill); padding: .8rem 1.5rem; transition: background .2s, color .2s, transform .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--green-600); color: #fff; padding: .45rem .45rem .45rem 1.4rem; gap: .9rem; }
.btn-primary .btn-arrow { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #fff; color: var(--green-700); display: grid; place-items: center; transition: transform .3s var(--ease); flex: none; }
.btn-primary:hover { background: var(--green-700); color:#fff; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-outline { border: 1.5px solid var(--color-primary); color: #000; }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: #000; border-color:#fff; }

.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { filter: brightness(.95); color:#fff; }

.btn-sm { padding: .5rem 1rem; font-size: .9rem; }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* Phone: paired CTA buttons stack one under the other, and every CTA button
   (including single ones like "Ver todos los servicios") fills the width. */
@media (max-width: 600px) {
  .hero-cta,
  .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-cta > .btn,
  .cta-actions > .btn,
  .mt-2 > .btn,
  .split-body > .btn { width: 100%; justify-content: center; }
  /* Phone: hide the circular chevron on the primary CTA (e.g. "Solicitar presupuesto") */
  .btn-primary .btn-arrow { display: none; }
  .btn-primary { padding: .8rem 1.5rem; gap: 0; }
}

