/* Lake Forest Company — página temporal "Sitio web en renovación"
   Mobile-first. Sin dependencias externas. */

/* ---------- Fuente (Nunito Sans variable, subconjunto con los caracteres de la página, OFL 1.1) ---------- */
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-sans-subset.woff2") format("woff2-variations"),
       url("../fonts/nunito-sans-subset.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Variables ---------- */
:root {
  /* Paleta de marca */
  --c-blue: #0B2545;
  --c-green: #1B4332;
  --c-green-dark: #133024;
  --c-red: #B21E2B;
  --c-white: #FFFFFF;

  /* Neutros de apoyo */
  --c-bg-soft: #F4F6F9;
  --c-border: #DCE2EA;
  --c-text: #1F2A37;
  --c-muted: #4A5768;
  --c-green-tint: #EDF2EF;
  --c-on-dark: rgba(255, 255, 255, 0.86);
  --c-on-dark-line: rgba(255, 255, 255, 0.16);

  /* Tipografía */
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Medidas */
  --container: 1160px;
  --gutter: 20px;
  --gap: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --section-y: 64px;
  --shadow-card: 0 1px 2px rgba(11, 37, 69, 0.05), 0 4px 16px rgba(11, 37, 69, 0.04);
  --focus: 3px solid var(--c-blue);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }
svg { display: block; flex-shrink: 0; }

a { color: inherit; }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--c-white);
  color: var(--c-blue);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Encabezado ---------- */
.site-header {
  background: var(--c-blue);
  color: var(--c-white);
  border-bottom: 1px solid var(--c-on-dark-line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-block: 18px;
}

.brand {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-on-dark);
}

.status-tag__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* ---------- Bloque principal ---------- */
.hero {
  background: var(--c-blue);
  color: var(--c-white);
  border-bottom: 6px solid var(--c-green);
}

.hero__inner {
  padding-block: 56px 64px;
}

.hero__rule {
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 24px;
  background: var(--c-red);
  border-radius: 2px;
}

.hero__title {
  max-width: 20ch;
  font-weight: 800;
  font-size: clamp(2rem, 1.35rem + 3.2vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 60ch;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--c-white);
}

.hero__text {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--c-on-dark);
}

/* ---------- Botones ---------- */
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn__icon { width: 20px; height: 20px; fill: currentColor; }
.btn__icon--line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--primary {
  background: var(--c-green);
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { background: var(--c-green-dark); border-color: rgba(255, 255, 255, 0.55); }

.btn--secondary {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--c-white); }

.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-white); }

/* ---------- Títulos de sección ---------- */
.section-title {
  font-weight: 800;
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-blue);
  text-wrap: balance;
}

/* ---------- Servicios ---------- */
.services {
  background: var(--c-bg-soft);
  padding-block: var(--section-y);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin-top: 32px;
}

.card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.card__num {
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  color: var(--c-green);
  font-variant-numeric: tabular-nums;
}

.card__icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 10px;
  background: var(--c-green-tint);
  color: var(--c-green);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.card__title {
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--c-blue);
  overflow-wrap: break-word;
  hyphens: manual;
}

/* ---------- Contacto ---------- */
.contact {
  padding-block: var(--section-y);
  background: var(--c-white);
}

.contact__inner {
  display: grid;
  gap: 32px;
}

.contact__text {
  max-width: 48ch;
  margin-top: 16px;
  font-size: 1.0625rem;
  color: var(--c-muted);
}

.details { border-top: 1px solid var(--c-border); }

.details__row {
  display: grid;
  gap: 6px;
  padding-block: 18px;
  border-bottom: 1px solid var(--c-border);
}

.details__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.details__icon {
  width: 18px;
  height: 18px;
  color: var(--c-green);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.details__icon--fill { fill: currentColor; stroke: none; }

.details__value {
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--c-text);
  overflow-wrap: anywhere;
}

.details__value a {
  display: inline-block;
  padding-block: 4px;
  font-weight: 700;
  color: var(--c-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-border);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
.details__value a:hover {
  color: var(--c-green);
  text-decoration-color: currentColor;
}

.social { margin-top: 28px; }

.social__title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.social__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  color: var(--c-blue);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.social__link svg { width: 20px; height: 20px; fill: currentColor; }
.social__link:hover {
  color: var(--c-green);
  border-color: var(--c-green);
  background: var(--c-green-tint);
}

/* ---------- Pie de página ---------- */
.site-footer {
  background: var(--c-blue);
  color: var(--c-on-dark);
  font-size: 0.875rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 22px;
}

/* ---------- Tablet ---------- */
@media (min-width: 540px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
    --gap: 20px;
    --section-y: 80px;
  }
  .card { flex-basis: calc((100% - var(--gap)) / 2); padding: 28px; }
  .hero__inner { padding-block: 72px 80px; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
  .contact__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 40px;
    --gap: 24px;
    --section-y: 96px;
  }
  .card { flex-basis: calc((100% - 2 * var(--gap)) / 3); padding: 32px; }
  .card__top { margin-bottom: 32px; }
  .card__title { font-size: 1.25rem; }
  .hero__inner { padding-block: 96px 104px; }
  .cards { margin-top: 40px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Alto contraste forzado ---------- */
@media (forced-colors: active) {
  .btn, .card, .social__link, .status-tag { border: 1px solid CanvasText; }
}
