/* =====================================================================
   Lunas Roofing — tema 2026 (diseño inspirado en pagina-contratista, Rufero Pro)
   Se carga DESPUÉS de styles.css y cambia tokens, tipografía y componentes.
   Fuentes: Big Shoulders Display (títulos) + Figtree (texto). Sin Inter, Roboto ni Arial.
   ===================================================================== */

:root {
  /* Marca: naranja de las camionetas, oscurecido para que el texto blanco pase AA */
  --brand: #c2410c;
  --brand-oscuro: #9a3412;
  --brand-suave: #fbece4;
  --amber: #fba80e;                 /* el ámbar del logo, para detalles sobre fondo oscuro */

  /* Tokens que usa styles.css */
  --gold: var(--brand);
  --gold-deep: var(--brand-oscuro);
  --gold-dark: var(--brand-oscuro);
  --gold-light: #ffb46b;
  --gold-soft: rgba(194, 65, 12, 0.10);
  --gold-line: rgba(194, 65, 12, 0.35);

  --ink: #1c1917;
  --ink-2: #161412;
  --ink-3: #24211f;
  --text: #3d3d45;
  --text-muted: #6b6b75;
  --surface-2: #f6f6f7;
  --surface-3: #efeff1;
  --border: #e8e8ec;

  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --shadow: 0 18px 40px -22px rgba(20, 10, 10, 0.35);
  --shadow-lg: 0 24px 60px -30px rgba(0, 0, 0, 0.35);

  --font-head: "Big Shoulders Display", ui-sans-serif, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-body: "Figtree", ui-sans-serif, "Segoe UI", "Helvetica Neue", sans-serif;

  /* Para el estimador */
  --fuente-titulos: var(--font-head);
  --fuente-texto: var(--font-body);

  --soft: #f6f6f7;
}

/* ---------- Tipografía ---------- */
body { font-family: var(--font-body); font-size: 16.5px; line-height: 1.6; color: var(--text); }
h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.02;
}
h1 { font-size: clamp(44px, 6vw, 84px); }
h2 { font-size: clamp(36px, 4.6vw, 58px); }
h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: 0.01em; }
.prose h2 { font-size: clamp(30px, 3.6vw, 42px); }
.prose h3 { font-size: 24px; }
::selection { background: var(--brand); color: #fff; }
a { text-underline-offset: 3px; }

/* Etiqueta pequeña sobre los títulos + línea naranja */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before, .eyebrow::after { background: var(--brand) !important; }
.section--dark .eyebrow { color: var(--gold-light); }
.rule { width: 56px; height: 3px; background: var(--brand); border-radius: 3px; }

/* ---------- Botones ---------- */
.btn {
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--brand-oscuro); border-color: var(--brand-oscuro); color: #fff;
  transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(194, 65, 12, 0.7);
}
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--ghost-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ghost-light:hover { background: #efeff1; color: var(--ink); transform: translateY(-2px); }
.btn--ghost-light svg { color: var(--brand); }
.btn--pulse { animation: none; }

/* ---------- Barra superior y encabezado (blanco, como la plantilla) ---------- */
.topbar { background: var(--ink); }
.topbar a:hover { color: var(--gold-light); }
.header {
  background: #fff !important;
  box-shadow: 0 1px 0 var(--border);
  border-bottom: 0;
}
.header .nav__link, .header .nav__link:visited { color: var(--ink); font-weight: 600; font-family: var(--font-body); }
.header .nav__link:hover, .header .nav__link[aria-current="page"] { color: var(--brand); }
.header .nav__link::after { background: var(--brand) !important; }
.header__phone, .header__phone strong { color: var(--ink); }
.header__phone span span { color: var(--text-muted); }
.header__phone svg { color: var(--brand); }
.burger span { background: var(--ink) !important; }
.burger { border-color: var(--border) !important; }
.nav__sub { border-radius: 14px; box-shadow: 0 24px 50px -18px rgba(20, 12, 8, 0.35); border: 1px solid var(--border); background: #fff; }
.nav__sub a { color: var(--ink); }
.nav__sub a:hover { background: var(--brand-suave); color: var(--brand); }
.lang-switch { border-color: var(--border); color: var(--ink); background: #fff; }
.lang-switch:hover, .lang-switch:focus-visible { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Portadas: panel con esquinas redondeadas y degradado ---------- */
.hero, .page-hero {
  margin: 0 12px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}
.hero__bg::after, .page-hero__bg::after {
  background:
    linear-gradient(90deg, rgba(10, 6, 6, 0.82) 0%, rgba(10, 6, 6, 0.55) 45%, rgba(10, 6, 6, 0.12) 85%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 40%) !important;
}
.hero h1, .page-hero h1 { color: #fff; letter-spacing: 0; }
.hero h1 em, .page-hero h1 em { color: var(--gold-light); font-style: normal; }
.hero__badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  border-radius: 999px;
}
.hero__badge svg { color: var(--gold-light); }
.page-hero { min-height: 400px; display: flex; align-items: flex-end; }
.page-hero__lead, .hero__lead { color: rgba(255, 255, 255, 0.92); }

/* ---------- Franja de confianza (blanca, con tablero abajo) ---------- */
.trust-strip {
  background: #fff;
  border-top: 0;
  border-bottom: 0;
  padding: clamp(26px, 3vw, 36px) 0 0;
  position: relative;
}
.trust-strip::after {
  content: "";
  display: block;
  height: 30px;
  margin-top: clamp(22px, 3vw, 30px);
  background-image:
    linear-gradient(45deg, #f1f1f3 25%, transparent 25%, transparent 75%, #f1f1f3 75%),
    linear-gradient(45deg, #f1f1f3 25%, transparent 25%, transparent 75%, #f1f1f3 75%);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}
/* Estimador: los cuadros de números (styles.css les ponía fondo blanco) */
.est-calc .stats-box .stats-grid { gap: 14px; }
.est-calc .stats-box .stat {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  padding: 18px 22px; text-align: left; min-width: 150px;
}
.est-calc .stats-box .stat-num { color: var(--amber) !important; font-family: var(--font-head) !important; font-size: 2.6rem !important; }
.est-calc .stats-box .stat-label { color: rgba(255,255,255,.75) !important; }

/* Carrusel de fotos de la portada */
.hero__bg--slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out;
}
.hero__bg--slides img.is-active { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .hero__bg--slides img { transition: none; transform: none; } }

/* Franja de fotos en movimiento (inicio) */
.photo-strip { padding-block: clamp(48px, 6vw, 80px); overflow: hidden; }
.photo-strip__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.photo-strip__head h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
.photo-strip__track { display: flex; width: max-content; animation: stripMove 70s linear infinite; }
.photo-strip__track:hover { animation-play-state: paused; }
.photo-strip__row { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 14px 0 0; }
.photo-strip__row img { width: clamp(220px, 24vw, 340px); aspect-ratio: 3/2; object-fit: cover; border-radius: 16px; display: block; }
@keyframes stripMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .photo-strip__track { animation: none; overflow-x: auto; width: auto; } }

/* Botón del estimador (portada) */
.btn--est {
  background: var(--amber); color: var(--ink); border: 0; gap: 12px; text-align: left;
  box-shadow: 0 0 0 0 rgba(251,168,14,.6); animation: estPulse 2.4s ease-out infinite;
}
.btn--est:hover { background: #ffbf3d; color: var(--ink); transform: translateY(-2px); }
.btn--est svg { width: 26px; height: 26px; flex: 0 0 auto; }
.btn--est__txt { display: flex; flex-direction: column; line-height: 1.1; }
.btn--est__txt strong { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.btn--est__txt small { font-size: .78rem; font-weight: 600; opacity: .8; }
@keyframes estPulse { 0% { box-shadow: 0 0 0 0 rgba(251,168,14,.55); } 70% { box-shadow: 0 0 0 16px rgba(251,168,14,0); } 100% { box-shadow: 0 0 0 0 rgba(251,168,14,0); } }
@media (prefers-reduced-motion: reduce) { .btn--est { animation: none; } }

/* Atajo del estimador en el menú */
.nav__link--est {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px !important; border-radius: 999px;
  background: var(--brand-suave); color: var(--brand) !important; font-weight: 700;
}
.nav__link--est::after { display: none !important; }
.nav__link--est:hover { background: var(--brand); color: #fff !important; }
.nav__link--est svg { width: 15px; height: 15px; }

/* Banner de la troca (inicio) */
.truck-banner { position: relative; margin: 0 clamp(8px, 1.2vw, 16px); border-radius: 24px; overflow: hidden; background: var(--ink); color: #fff; }
.truck-banner__bg { position: absolute; inset: 0; }
.truck-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.truck-banner__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,14,.94) 0%, rgba(20,16,14,.78) 45%, rgba(20,16,14,.35) 100%); }
.truck-banner__inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.truck-banner__tag { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.truck-banner h2 { color: #fff; font-family: var(--font-head); font-weight: 900; text-transform: uppercase; line-height: .88; font-size: clamp(3.4rem, 9vw, 7.5rem); margin: 18px 0 14px; letter-spacing: -.01em; }
.truck-banner h2 span { display: block; color: var(--amber); }
.truck-banner p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: rgba(255,255,255,.9); margin: 0 0 26px; font-weight: 600; }
.truck-banner__photos { position: relative; min-height: 360px; }
.truck-banner__photos img { position: absolute; width: 78%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; border: 6px solid #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.truck-banner__photos img:first-child { top: 0; right: 0; transform: rotate(3deg); }
.truck-banner__photos img:last-child { bottom: 0; left: 0; transform: rotate(-4deg); }
@media (max-width: 900px) {
  .truck-banner__inner { grid-template-columns: 1fr; }
  .truck-banner__photos { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .truck-banner__photos img { position: static; width: 100%; transform: none !important; border-width: 4px; }
}

/* Bienvenida corta del inicio */
.welcome-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink); font-weight: 600; margin-top: 0; }
.welcome-points { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.welcome-points li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--surface-2); border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
}
.welcome-points svg { flex: 0 0 auto; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--brand); color: #fff; }
@media (max-width: 480px) { .welcome-points { grid-template-columns: 1fr; } }

/* Insignias: tarjetas con sello redondo (no dependen de styles.css) */
.trust-strip__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
}
.trust-strip__list li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 22px 14px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  color: var(--text-muted); font-size: 0.88rem; line-height: 1.35;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.trust-strip__list li:hover { transform: translateY(-2px); border-color: var(--gold-line); box-shadow: var(--shadow); }
.trust-strip__list li > div { display: flex; flex-direction: column; gap: 3px; }
.trust-strip__list svg {
  flex: 0 0 auto; width: 58px; height: 58px; padding: 15px; margin: 0;
  background: var(--brand); color: #fff; border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold-line);
}
.trust-strip__list li:first-child svg, .trust-strip__list li:nth-child(2) svg { background: var(--ink); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--amber); color: var(--amber); }
.trust-strip__list strong {
  display: block; color: var(--ink); font-family: var(--font-head); font-weight: 700;
  font-size: 1.12rem; line-height: 1.12; text-transform: uppercase; letter-spacing: 0.02em;
}
.trust-strip__list strong a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
@media (max-width: 1100px) { .trust-strip__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .trust-strip__list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-strip__list li { padding: 18px 10px 16px; }
  .trust-strip__list li:last-child { grid-column: 1 / -1; }
  .trust-strip__list svg { width: 50px; height: 50px; padding: 13px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(70px, 9vw, 110px); }
.section--light, .section--gray { background: var(--soft); }
/* Las secciones oscuras se vuelven paneles redondeados */
.section--dark {
  background: var(--ink);
  margin: 0 12px;
  border-radius: var(--radius-xl);
}
.section-head h2 { margin-top: 10px; }
.section-head--center .rule { margin-inline: auto; }

/* ---------- Tarjetas ---------- */
.card, .icard {
  background: var(--soft);
  border: 0;
  border-radius: var(--radius-lg);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.section--light .card, .section--light .icard, .section--gray .card, .section--gray .icard { background: #fff; }
.card:hover, .icard:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: #fff; }
.section--dark .icard { background: var(--ink-3); }
.section--dark .icard:hover { background: #2c2825; }
.card__media { border-radius: 12px; overflow: hidden; margin: 12px 12px 0; }
.card__media img { transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.icard__icon, .card__icon, .ctile__icon {
  background: var(--brand-suave) !important;
  color: var(--brand) !important;
  border-radius: 12px;
}
.section--dark .icard__icon { background: rgba(255, 180, 107, 0.12) !important; color: var(--gold-light) !important; }
.icard h3, .card h3 { font-size: 22px; }

/* Áreas, galería y fotos */
.area-card, .gallery [data-gallery-item], .split__media img, .map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.area-card::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 60%) !important; }
.gallery [data-gallery-item] img { transition: transform .5s ease; }
.gallery [data-gallery-item]:hover img { transform: scale(1.05); }

/* Chips de barrios */
.chips li span, .chips li a { background: #fff; border: 1px solid var(--border); border-radius: 999px; color: var(--ink); }
.chips svg { color: var(--brand); }

/* Llamada a la acción (banda con foto) */
.cta-band { margin: 0 12px; border-radius: var(--radius-xl); overflow: hidden; }
.cta-band h2 { color: #fff; }

/* Preguntas frecuentes */
.acc, .accordion details, details.acc {
  background: var(--soft);
  border: 0 !important;
  border-radius: 12px;
  margin-bottom: 10px;
}
.acc__btn, .acc summary { font-family: var(--font-body); font-weight: 700; font-size: 17px; color: var(--ink); }
.acc__icon { background: #fff; color: var(--brand); border-radius: 50%; }

/* Formularios */
.input, .select, .textarea, .field input, .field select, .field textarea {
  border: 1px solid #d9d9df;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
}
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-suave);
  outline: none;
}
.quote-card { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.quote-card__head { background: var(--ink); color: #fff; border-top: 4px solid var(--brand); }
.quote-card__head h2, .quote-card__head h3 { color: #fff; }
.field-label { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.04em; }

/* Barra lateral */
.side-card { border-radius: var(--radius-lg); }
.side-card--gold { background: var(--brand); color: #fff; }

/* ---------- Pie de página ---------- */
.footer { background: #0f0f10; color: #cfcfd4; }
.footer h3, .footer h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
}
.footer h3::after, .footer h4::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--brand);
}
.footer__main .container > .footer__grid { border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 12px; padding: clamp(20px, 3vw, 34px); }
.footer a:hover { color: var(--gold-light); }
.footer__social a { border-radius: 50%; }
.footer__bar { border-top: 0; }
.footer__bar-inner { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 14px 18px; }

/* ---------- Barra fija en celular (estilo "callbar") ---------- */
@media (max-width: 900px) {
  .mobile-bar {
    left: 10px; right: 10px; bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }
  .mobile-bar a:first-child { background: var(--brand); color: #fff; }
  .mobile-bar a:last-child { background: #141414; color: #fff; }
}

/* ---------- Estimador ---------- */
.est-section .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.est-calc { border: 1px solid var(--border); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.3); }
.est-calc h2 { text-transform: none; font-family: var(--font-body); font-weight: 800; letter-spacing: -0.01em; }
.est-calc .welcome-intro .welcome-title { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(30px, 4vw, 40px); }
.est-calc .btn-primary { border-radius: 8px; font-weight: 700; }
.est-calc .btn-primary:hover { background: var(--brand-oscuro); color: #fff; border-color: var(--brand-oscuro); }

/* Accesibilidad: sin animaciones si la persona lo pide */
@media (prefers-reduced-motion: reduce) {
  .card, .icard, .btn, .gallery img, .card__media img { transition: none !important; transform: none !important; }
}
@media (max-width: 600px) {
  .hero, .page-hero, .section--dark, .cta-band { margin-inline: 6px; }
  body { font-size: 16px; }
}
