/* =========================================================
   Carpas Germain - estilos base
   Paleta: blanco, azul, rojo (ajustar con los tonos exactos del logo)
   ========================================================= */

:root {
  --blue: #0b3d91;
  --blue-dark: #072a66;
  --blue-light: #e8eef9;
  --red: #d62828;
  --red-dark: #a91e1e;
  --white: #ffffff;
  --ink: #1b2233;
  --muted: #5b6478;
  --border: #dfe4ee;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  --radius: 12px;
  --shadow: 0 8px 24px rgba(11, 61, 145, 0.08);
  --container: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--blue); }
.btn--sm { padding: 0.55em 1.2em; font-size: 0.9rem; }
.btn--block { width: 100%; font-size: 1rem; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 0.5em;
}
.eyebrow--light { color: #ffb3b3; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  color: var(--blue);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  border-bottom: 4px solid var(--red);
}
.brand__name { font-size: 1.15rem; }
.brand__name strong { color: var(--red); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.nav a:not(.btn):hover { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--blue);
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(7, 42, 102, 0.95), rgba(11, 61, 145, 0.85)),
    var(--blue); /* TODO: agregar imagen de fondo de una carpa montada */
  color: var(--white);
  padding: clamp(64px, 12vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--red);
}
.hero__inner { max-width: 760px; }
.hero .eyebrow { color: #ffb3b3; }
.hero .accent { color: #ff6b6b; }
.hero__lead { font-size: 1.15rem; opacity: 0.92; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section--blue { background: var(--blue); color: var(--white); }
.section--light { background: var(--blue-light); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head p:last-child { color: var(--muted); }
.section--blue .section__head p:last-child { color: rgba(255,255,255,0.8); }

.grid { display: grid; gap: 24px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-top-color: var(--red); }
.card__icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { color: var(--blue); }
.card p { color: var(--muted); margin: 0; }

.feature {
  padding: 24px;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.feature p { margin: 0; opacity: 0.85; }

/* ---------- Proceso ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: none;
}
.step { text-align: center; padding: 16px; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 12px;
  box-shadow: 0 0 0 6px var(--blue-light);
}
.step p { color: var(--muted); margin: 0; }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact__list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact__list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.contact__list strong { color: var(--blue); }

.form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form__row { margin-bottom: 16px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.15);
}
.form__status { margin: 12px 0 0; font-weight: 600; min-height: 1.6em; }
.form__status.is-error { color: var(--red); }
.form__status.is-ok { color: var(--blue); }

/* ---------- Footer ---------- */
.footer { background: var(--blue-dark); color: rgba(255, 255, 255, 0.8); padding: 24px 0; font-size: 0.9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 16px; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .form { padding: 20px; }
  .form__row--2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
