/* =========================================================================
   SECTIONS.CSS — Estilos de cada sección de la landing (en orden)
   ========================================================================= */

/* ---------- Sección genérica ---------- */
.section { padding-block: var(--space-section); }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-ink); color: var(--c-on-dark); }
.section--accent { background: linear-gradient(135deg, var(--c-brand-2) 0%, #263350 100%); color: #fff; }
.section--accent .section__title { color: #fff; }

.section__head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section__title { font-size: var(--fs-xl); font-weight: 800; text-transform: uppercase; }
.section__lead { margin-top: 1rem; font-size: var(--fs-lg); color: var(--c-muted); }
.section--dark .section__lead { color: var(--c-on-dark-muted); }

/* =========================================================================
   1. HERO
   ========================================================================= */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--c-ink);
  padding-top: calc(var(--header-h) + 3rem);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 75%; }
.hero__media::after { /* oscurece la foto para que el texto se lea */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,16,20,.92) 0%, rgba(14,16,20,.7) 45%, rgba(14,16,20,.2) 100%),
    linear-gradient(0deg, rgba(14,16,20,.9) 0%, transparent 40%);
}
.hero__content { padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
/* Título: nunca corta palabras. El tamaño se achica con la pantalla (9.5vw)
   para que "SOBREDIMENSIONADAS" siempre entre completa en una línea. */
.hero__title { overflow-wrap: normal; word-break: normal; hyphens: none; font-size: min(var(--fs-2xl), 9.5vw); font-weight: 800; text-transform: uppercase; max-width: 13em; }
.hero__lead { margin-top: 1.25rem; max-width: 560px; font-size: var(--fs-lg); color: #d9dde3; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__bullets { margin-top: 2rem; display: grid; gap: .5rem; color: #d9dde3; font-size: var(--fs-sm); }
.hero__bullets li { position: relative; padding-left: 1.75rem; }
.hero__bullets .icon { position: absolute; left: 0; top: .2em; color: var(--c-accent); }
.hero__bullets strong { color: #fff; }

/* Barra de confianza (números) */
.trustbar { background: rgba(20,23,28,.9); border-top: 1px solid var(--c-ink-3); backdrop-filter: blur(6px); }
.trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: .15rem; border-left: 1px solid var(--c-ink-3); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1; color: var(--c-accent); }
.stat__label { font-size: var(--fs-xs); color: var(--c-on-dark-muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 700px) {
  .trustbar__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1rem .75rem; border-left: 0; border-top: 1px solid var(--c-ink-3); }
  .stat:first-child { padding-left: .75rem; }
  .stat:nth-child(-n+2) { border-top: 0; }
}

/* =========================================================================
   2. SERVICIOS
   ========================================================================= */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, .5rem + 1.5vw, 1.75rem); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

.service {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.service:hover { box-shadow: var(--shadow); }

.service__media { position: relative; display: block; padding: 0; border: 0; background: var(--c-ink); aspect-ratio: 16 / 10; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service__media:hover img { transform: scale(1.05); }
.service__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--c-accent); color: var(--c-accent-ink);
  font-family: var(--f-display); font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em;
  padding: .3rem .7rem; border-radius: 4px;
}
.service__photos {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(14,16,20,.8); color: #fff; font-weight: 600; font-size: var(--fs-sm);
  padding: .45rem .8rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.service__body { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); flex: 1; }
.service__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 800; text-transform: uppercase; }
.service__text { color: var(--c-muted); }
.service__list { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; margin-bottom: .5rem; flex: 1; }
.service__list li { position: relative; padding-left: 1rem; font-size: var(--fs-sm); font-weight: 500; }
.service__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--c-accent); }
@media (max-width: 460px) { .service__list { grid-template-columns: 1fr; } }

/* =========================================================================
   3. INDUSTRIAS
   ========================================================================= */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--c-ink-3); border: 1px solid var(--c-ink-3); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .industries { grid-template-columns: repeat(2, 1fr); } }
.industry {
  height: 100%; display: flex; flex-direction: column; gap: .3rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem); background: var(--c-ink);
  text-decoration: none; transition: background-color .25s;
}
.industry .icon { width: 36px; height: 36px; color: var(--c-accent); margin-bottom: .6rem; }
.industry strong { font-family: var(--f-display); font-size: 1.5rem; text-transform: uppercase; color: #fff; }
.industry span { color: var(--c-on-dark-muted); font-size: var(--fs-sm); }
.industry:hover { background: var(--c-ink-2); }
.industry:hover strong { color: var(--c-accent); }

/* =========================================================================
   4. CÓMO TRABAJAMOS
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 1.25rem; border-top: 3px solid var(--c-ink); }
.step__num { font-family: var(--f-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--c-accent); }
.step__title { font-size: 1.5rem; text-transform: uppercase; margin: .4rem 0 .5rem; }
.step p { color: var(--c-muted); font-size: var(--fs-sm); }

.features { margin-top: clamp(3rem, 2rem + 3vw, 5rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 1rem; padding: 1.4rem; background: var(--c-bg-soft); border-radius: var(--radius); }
.feature .icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--c-ink); color: var(--c-accent); }
.feature h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: .25rem; }
.feature p { font-size: var(--fs-sm); color: var(--c-muted); }

/* =========================================================================
   5. COTIZADOR
   ========================================================================= */
.quote { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }
.quote__intro p { margin-top: 1rem; font-size: var(--fs-lg); }
.quote__intro .checklist { margin-top: 1.5rem; }
.quote__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  background: #fff; color: var(--c-text); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
@media (max-width: 520px) { .quote__form { grid-template-columns: 1fr; } }
.quote__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.quote__actions .btn { flex: 1 1 220px; }

/* =========================================================================
   6. COBERTURA / BASES
   ========================================================================= */
.bases { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .bases { grid-template-columns: 1fr; } }
.base { border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.base__map { aspect-ratio: 16 / 9; background: var(--c-bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8bec8' stroke-width='1.5'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/48px no-repeat; }
.base__map iframe { width: 100%; height: 100%; border: 0; }
.base__body { padding: 1.4rem 1.5rem; display: grid; gap: .6rem; }
.base__body h3 { font-size: 1.6rem; text-transform: uppercase; }
.base__body p { display: flex; gap: .5rem; color: var(--c-muted); }
.base__body p .icon { color: var(--c-accent); margin-top: .2em; }
.base__body .link-arrow { justify-self: start; }

/* =========================================================================
   7. PREGUNTAS FRECUENTES
   ========================================================================= */
.faq { display: grid; gap: .75rem; }
.faq__item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem; font-weight: 700; font-size: var(--fs-lg);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--f-display); font-size: 1.8rem; line-height: 1; color: var(--c-accent); transition: transform .25s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 1.4rem 1.25rem; color: var(--c-muted); }

/* =========================================================================
   8. CONTACTO
   ========================================================================= */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__card {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: var(--c-ink-2); border: 1px solid var(--c-ink-3);
  text-decoration: none; color: var(--c-on-dark);
}
.contact__card .icon { width: 34px; height: 34px; color: var(--c-accent); margin-bottom: .5rem; }
.contact__card strong { font-family: var(--f-display); font-size: 1.6rem; text-transform: uppercase; }
.contact__card span { color: var(--c-on-dark-muted); }
.contact__card a { color: #fff; text-decoration: none; font-weight: 600; word-break: break-word; }
.contact__card a:hover { color: var(--c-accent); }
.contact__card--wa { background: var(--c-wa); border-color: var(--c-wa); transition: transform .2s var(--ease), background-color .2s; }
.contact__card--wa .icon, .contact__card--wa span { color: #fff; }
.contact__card--wa:hover { background: var(--c-wa-dark); transform: translateY(-3px); }

.social { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--c-ink-3); }
.social p { font-family: var(--f-display); font-size: 1.5rem; text-transform: uppercase; }
.social__list { display: flex; flex-wrap: wrap; gap: .75rem; }
.social__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.2rem; border-radius: 999px;
  border: 1.5px solid var(--c-ink-3); color: #fff; text-decoration: none; font-weight: 600;
  transition: background-color .2s, border-color .2s, color .2s;
}
.social__btn:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: #0e1014; color: var(--c-on-dark-muted); padding-top: 3.5rem; font-size: var(--fs-sm); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand .brand { margin-bottom: 1rem; }
.footer__brand p { max-width: 420px; }
.footer__nav { display: flex; flex-direction: column; gap: .45rem; }
.footer__nav h3 { color: #fff; font-size: 1.15rem; text-transform: uppercase; margin-bottom: .4rem; }
.footer__nav a { color: inherit; text-decoration: none; }
.footer__nav a:hover { color: var(--c-accent); }
.footer__bottom { border-top: 1px solid var(--c-ink-3); padding-block: 1.25rem; }

/* Link "Más sobre…" dentro de cada tarjeta de servicio */
.service__more { align-self: flex-start; font-size: var(--fs-sm); }
