/* ============================================================
   TABLERED ARAUCO -- Landing Page Styles
   Identidad de marca alineada al brandbook oficial:
     - Marron Carbon #3D3631 (primario -- estructura, texto, contenedores)
     - Naranja Tablered #F06E16 (acento -- CTAs, urgencia, highlights)
     - Blanco / gris claro (soporte -- fondos, descanso visual)
   Tipografia: Montserrat (Google Fonts)
   Version: 2.0 -- 2026-05-27 -- Re-alineacion a brandbook Tablered
   ============================================================ */

/* -- RESET & BASE -------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--brown);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* -- CSS VARIABLES ------------------------------------------- */
:root {
  /* Brand primary -- Marron Carbon (estructura, texto, contenedores oscuros) */
  --brown:        #3D3631;
  --brown-dark:   #2A2522;
  --brown-soft:   #F5F1EE;

  /* Brand accent -- Naranja Tablered (CTAs, urgencia, escuadra del logo) */
  --orange:       #F06E16;
  --orange-dark:  #C75810;
  --orange-soft:  #FDEFE3;

  /* Estructura -- el "negro" del sitio es el marron carbon, no negro puro */
  --dark:         #3D3631;
  --dark-2:       #2A2522;
  --gray:         #555555;
  --gray-light:   #888888;
  --border:       #E0E0E0;
  --bg-light:     #F5F5F5;
  --white:        #FFFFFF;
  --wa-green:     #25D366;
  --wa-dark:      #128C7E;

  /* Aliases legacy -- el "RED" de TABLERED es parte del nombre, no del color.
     Mapeados al naranja Tablered para que cualquier uso heredado siga vivo
     pero apuntando al color correcto de la marca. */
  --red:          #F06E16;
  --red-dark:     #C75810;
  --red-light:    #FDEFE3;

  /* Geometria -- el brandbook pide rectangulares solidos, sin bordes redondeados exagerados */
  --radius:     4px;
  --radius-lg:  8px;
  --shadow:     0 4px 20px rgba(61,54,49,0.10);
  --shadow-md:  0 8px 32px rgba(61,54,49,0.14);
  --shadow-lg:  0 16px 48px rgba(61,54,49,0.18);

  --transition: all 0.25s ease;

  --container:  1200px;
  --section-py: 80px;
}

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

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.section-title span {
  color: var(--red);
}

.section-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--gray);
  max-width: 600px;
}

.section-header {
  margin-bottom: 52px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

.tag-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,110,22,0.35);
}

.btn-wa {
  background: var(--wa-green);
  color: var(--white);
}

.btn-wa:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--red);
}

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* -- IMAGE PLACEHOLDER --------------------------------------- */
.img-placeholder {
  position: relative;
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray-light);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.02) 10px,
    rgba(0,0,0,0.02) 20px
  );
}

.img-placeholder .ph-icon {
  font-size: 40px;
  opacity: 0.4;
  position: relative;
  z-index: 1;
}

.img-placeholder .ph-label {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  max-width: 200px;
}

/* -- NAVIGATION ---------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(61,54,49,0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo img {
  height: 44px;
  width: auto;
}

.navbar__logo-placeholder {
  position: relative;
  background: var(--brown);
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 10px 14px 8px;
  border-radius: 2px;
  line-height: 1;
  text-transform: uppercase;
}

/* Escuadra naranja en esquina superior derecha -- replica del isotipo oficial */
.navbar__logo-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--orange);
}

.navbar__logo-placeholder span {
  color: var(--orange);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.navbar__links a:hover {
  color: var(--red);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -- MOBILE MENU --------------------------------------------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 75px;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 8px;
}

/* -- HERO SECTION -------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 60%, #1F1B19 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 14px;
  font-weight: 600;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 20px;
}

.hero__bg-placeholder .ph-label {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(61,54,49,0.90) 0%,
    rgba(61,54,49,0.72) 50%,
    rgba(61,54,49,0.32) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.hero__text .tag-label {
  color: #F26522;
}

.hero__title {
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.hero__title .accent {
  color: var(--red);
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* -- HERO FORM ----------------------------------------------- */
.hero__form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero__form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.hero__form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.hero__form-sub {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 28px;
}

.hero__form-sub strong {
  color: var(--red);
}

/* -- FORM STYLES --------------------------------------------- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(240,110,22,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #B0B0B0;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--orange);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240,110,22,0.35);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--gray-light);
  font-size: 13px;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-wa-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: var(--wa-green);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.form-wa-btn:hover {
  background: var(--wa-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.form-privacy {
  font-size: 11px;
  color: var(--gray-light);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* -- TRUST BAR ----------------------------------------------- */
.trust-bar {
  background: var(--red);
  padding: 20px 0;
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 40px;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.trust-bar__item .icon {
  font-size: 20px;
}

/* -- PAIN/SOLUTION SECTION ----------------------------------- */
.pain-section {
  padding: var(--section-py) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.pain-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(240,110,22,0.08);
}

.pain-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.pain-section .section-title {
  color: var(--white);
}

.pain-section .section-subtitle {
  color: rgba(255,255,255,0.7);
  max-width: 100%;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.7;
}

.pain-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pain-list__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  line-height: 1.5;
}

.pain-list__item .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  margin-top: 2px;
}

.pain-section__img {
  position: relative;
}

.pain-section__img .img-placeholder {
  height: 420px;
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
}

/* -- SERVICES SECTION ---------------------------------------- */
.services {
  padding: var(--section-py) 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(240,110,22,0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--red-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--red);
}

.service-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
}

/* -- PRODUCTS SECTION ---------------------------------------- */
.products {
  padding: var(--section-py) 0;
  background: var(--bg-light);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2x2 en escritorio y tablet; 1 columna en móvil (ver @media 768) */
  gap: 28px;
}

/* ── Pestañas de productos (Tableros / Complementos) ── */
.products__grid[hidden] { display: none; }

.products__tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 32px;
  border-bottom: 1px solid #E5DFDA;
}

.products__tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 12px 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.products__tab:hover { color: var(--brown); }

.products__tab.active {
  color: var(--brown);
  border-bottom-color: var(--orange);
}

.products__tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

@media (max-width: 600px) {
  .products__tab { flex: 1; padding: 12px 10px; font-size: 15px; }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card__img {
  height: 260px;
}

@media (max-width: 768px) {
  .product-card__img { height: 200px; }
}

.product-card__img .img-placeholder {
  height: 100%;
  border-radius: 0;
  border: none;
}

.product-card__body {
  padding: 24px;
}

.product-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.product-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.product-card__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card__feature {
  font-size: 12px;
  font-weight: 600;
  background: var(--red-light);
  color: var(--red);
  padding: 4px 10px;
  border-radius: 20px;
}

/* -- WHY US SECTION ------------------------------------------ */
.why-us {
  padding: var(--section-py) 0;
  background: var(--white);
}

.why-us__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.differentiators {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.diff-item:hover {
  background: var(--bg-light);
}

.diff-item__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.diff-item__text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.diff-item__text p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

.why-us__img .img-placeholder {
  height: 520px;
}

/* -- GALLERY SECTION ----------------------------------------- */
.gallery {
  padding: var(--section-py) 0;
  background: var(--bg-light);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item .img-placeholder {
  height: 220px;
  border-radius: 0;
  border: none;
  transition: transform 0.3s ease;
}

.gallery__item--large .img-placeholder {
  height: 100%;
  min-height: 456px;
}

.gallery__item:hover .img-placeholder {
  transform: scale(1.02);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(240,110,22,0);
  transition: background 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery__item:hover .gallery__overlay {
  background: rgba(240,110,22,0.65);
}

.gallery__caption {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* -- STATS STRIP --------------------------------------------- */
.stats-strip {
  padding: 72px 0;
  background: var(--red);
}

.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-item__number {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.stat-item__number .suffix {
  font-size: 32px;
}

.stat-item__label {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* -- LEAD FORM SECTION --------------------------------------- */
.lead-form {
  padding: var(--section-py) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.lead-form::before {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(240,110,22,0.06);
}

.lead-form__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.lead-form__text .section-title {
  color: var(--white);
}

.lead-form__text .section-subtitle {
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
  margin-bottom: 40px;
}

.lead-form__benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-form__benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
}

.lead-form__benefit .icon {
  font-size: 22px;
}

.lead-form__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.lead-form__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.lead-form__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.lead-form__card-sub {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 28px;
}

/* -- LOCATIONS SECTION --------------------------------------- */
.locations {
  padding: var(--section-py) 0;
  background: var(--white);
}

.locations__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.location-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.location-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(240,110,22,0.25);
}

.location-card__img {
  height: 220px;
  position: relative;
}

.location-card__img .img-placeholder {
  height: 100%;
  border-radius: 0;
  border: none;
}

.location-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 2;
}

.location-card__body {
  padding: 32px;
}

.location-card__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.location-card__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.location-card__detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.5;
}

.location-card__detail .icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.location-card__detail strong {
  color: var(--dark);
}

.location-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.location-card__actions .btn {
  flex: 1;
  min-width: 120px;
  padding: 14px 20px;
  font-size: 14px;
}

/* -- FAQ SECTION --------------------------------------------- */
.faq {
  padding: var(--section-py) 0;
  background: var(--bg-light);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq__item.open {
  border-color: var(--red);
  box-shadow: 0 2px 12px rgba(240,110,22,0.08);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  user-select: none;
  gap: 16px;
  line-height: 1.45;
  transition: padding 0.25s ease;
}

/* Cuando esta abierta, dejamos respirar arriba pero pegamos al answer abajo */
.faq__item.open .faq__question {
  padding-top: 24px;
  padding-bottom: 10px;
}

.faq__question:hover {
  color: var(--red);
}

.faq__chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.25s ease, background 0.25s;
  color: var(--red);
}

.faq__item.open .faq__chevron {
  transform: rotate(180deg);
  background: var(--red);
  color: var(--white);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  padding: 0 28px;
}

.faq__item.open .faq__answer {
  max-height: 800px !important;
  padding: 4px 28px 36px !important;
}

.faq__item.open .faq__answer p {
  margin: 0 !important;
  padding-bottom: 8px;
}

.faq__answer p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
}

/* -- FINAL CTA BANNER ---------------------------------------- */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(240,110,22,0.10);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(240,110,22,0.06);
}

.cta-banner__content {
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.cta-banner__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* -- FOOTER -------------------------------------------------- */
.footer {
  background: var(--dark-2);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer__logo {
  height: 72px;
  width: auto;
  margin-bottom: 20px;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 4px;
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.6);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.footer__social a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.footer__col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer__col ul li a:hover {
  color: var(--white);
}

.footer__col .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

.footer__col .contact-item .icon {
  font-size: 16px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom a {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer__bottom a:hover {
  color: var(--white);
}

.footer__arauco {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* -- NOTIFICATION TOAST -------------------------------------- */
.toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  background: var(--dark);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 1100;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
  max-width: 320px;
  line-height: 1.4;
  border-left: 4px solid var(--red);
}

.toast.success {
  border-left-color: #22c55e;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* -- SCROLL PROGRESS BAR ------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 75px;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--red);
  z-index: 1001;
  transition: width 0.1s linear;
}

/* -- SECTION TRANSITIONS ------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- RESPONSIVE ---------------------------------------------- */
@media (max-width: 1024px) {
  :root { --section-py: 64px; }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__form-card {
    max-width: 500px;
  }

  .pain-section__inner,
  .why-us__inner,
  .lead-form__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pain-section__img,
  .why-us__img {
    order: -1;
  }

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

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

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery__item--large .img-placeholder {
    min-height: 220px;
  }

  .stats-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }

  /* .btn usa white-space:nowrap para desktop; en móvil algunos botones
     (ej. "💬 WhatsApp — respuesta inmediata") superan el ancho de pantalla
     y fuerzan el viewport completo a desbordarse horizontalmente. */
  .btn {
    white-space: normal;
    text-align: center;
  }

  .navbar__links,
  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__title {
    font-size: 32px;
  }

  .trust-bar__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .services__grid,
  .products__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stats-strip__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stat-item__number {
    font-size: 40px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .lead-form__card {
    padding: 32px 24px;
  }

  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .hero__form-card {
    padding: 28px 20px;
  }
}

