/* ==========================================================
   COLORES DE MARCA — cambiar aquí para aplicar a todo el sitio
   ========================================================== */
:root {
  /* Paleta tomada del logo */
  --brand: #152a33;        /* azul petróleo profundo */
  --brand-dark: #0f1f26;   /* variante más oscura */
  --slate: #2b3d47;        /* azul pizarra */
  --accent: #5f8e9e;       /* azul acero (flecha del logo) */
  --accent-text: #4a7686;  /* acento legible sobre blanco */
  --accent-light: #95b2bf; /* celeste grisáceo */
  --silver: #d8d8d8;       /* gris plata */
  --text: #152a33;
  --muted: #55646c;
  --line: #e2e6e8;
  --bg: #ffffff;
  --bg-alt: #f4f6f7;

  --font-title: "Libre Baskerville", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

h1, h2, h3 { font-family: var(--font-title); font-weight: 400; color: var(--brand); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 2.5rem; }
h3 { font-size: 1.2rem; margin-bottom: .6rem; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 1rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: .9rem 1.6rem; font-size: .95rem; font-weight: 500;
  border: 1px solid transparent; border-radius: 2px; transition: all .2s ease;
}
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--accent-light); color: var(--brand); }
.btn--outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: var(--brand);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .75rem; }
.logo img { height: 40px; width: auto; }
.logo__text { font-family: var(--font-title); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--silver); }

.nav { display: flex; align-items: center; gap: 2rem; font-size: .95rem; }
.nav a { color: var(--accent-light); transition: color .2s; }
.nav a:hover { color: #fff; }
.nav .nav__cta { color: #fff; border: 1px solid rgba(255,255,255,.4); padding: .5rem 1.1rem; }
.nav .nav__cta:hover { background: #fff; color: var(--brand); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--silver); margin: 5px 0; }

/* ---------- Inicio ---------- */
.hero {
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: linear-gradient(160deg, var(--brand) 0%, var(--slate) 100%);
  position: relative; overflow: hidden;
}
.hero::after { /* isotipo como marca de agua */
  content: ""; position: absolute; right: -6%; top: 50%; width: min(52vw, 560px); aspect-ratio: 1;
  transform: translateY(-50%); background: url("img/web/isotipo-claro.png") center / contain no-repeat;
  opacity: .07; pointer-events: none;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--accent-light); }
.hero__inner { position: relative; z-index: 1; max-width: 820px; margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.hero__lead { font-size: 1.2rem; color: var(--silver); max-width: 620px; margin: 1.5rem 0 2.5rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--brand); color: var(--silver); }
.section--dark h2 { color: #fff; margin-bottom: 1.25rem; }

.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }
.prose p { color: var(--muted); margin-bottom: 1.25rem; }

.two-col .prose p:last-child { margin-bottom: 0; }
.values {
  list-style: none; margin-top: 4rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.values li { border-top: 2px solid var(--accent); padding-top: 1.25rem; }
.values strong { display: block; font-family: var(--font-title); font-weight: 400; font-size: 1.2rem; color: var(--brand); margin-bottom: .5rem; }
.values span { color: var(--muted); }

/* ---------- Servicios ---------- */
.services { list-style: none; border-top: 1px solid #cfd6da; }
.service {
  display: grid; grid-template-columns: 4rem 1fr 1.3fr; gap: 2rem; align-items: baseline;
  padding: 1.75rem 0; border-bottom: 1px solid #cfd6da;
}
.service__num { font-family: var(--font-title); color: var(--accent-text); }
.service h3 { margin: 0; }
.service p { color: var(--muted); }

/* ---------- Contacto ---------- */
.section--center { text-align: center; }
.contact__lead { max-width: 560px; margin: 0 auto 2.25rem; }
.contact__actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.contact {
  list-style: none; margin: 4rem auto 0; max-width: 960px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.15);
}
.contact li { padding: 2rem 1rem 0; color: #fff; display: grid; gap: .5rem; align-content: start; }
.contact span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); }
.contact a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact a:hover { color: var(--accent-light); }

/* ---------- Pie ---------- */
.footer { background: var(--brand-dark); color: #8a9ba3; font-size: .9rem; padding: 3rem 0 6rem; text-align: center; }
.footer__inner { display: grid; gap: .75rem; justify-items: center; }
.footer__logo { width: 220px; height: auto; margin-bottom: 1rem; }
.footer__legal { font-size: .8rem; max-width: 640px; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 76px; z-index: 20; /* por encima de la etiqueta de Netlify */
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .values { grid-template-columns: 1fr; gap: 1.75rem; margin-top: 3rem; }
  .service { grid-template-columns: 3rem 1fr; gap: .25rem 1rem; }
  .service p { grid-column: 2; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .br-desktop { display: none; }
  .logo__text { font-size: .9rem; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--brand); border-bottom: 1px solid rgba(255,255,255,.1); padding: .5rem 16px 1.25rem;
  }
  .nav--open { display: flex; }
  .nav a { padding: .75rem 0; width: 100%; }
  .nav .nav__cta { margin-top: .5rem; text-align: center; }
  .contact { grid-template-columns: 1fr; margin-top: 3rem; }
  .contact li { padding: 1.5rem 0 0; gap: .25rem; }
}
