/* =========================================================
   SALBO – Materiales de Construcción
   styles.css – Design System + Full Layout
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');
/* ── Custom Properties ── */
:root {
  --blue-900: #0A1929;
  --blue-800: #0D2B4E;
  --blue-700: #0D3E89;
  --blue-600: #0D3E89;
  --blue-500: #1976D2;
  --blue-400: #1E88E5;
  --blue-300: #42A5F5;
  --blue-200: #90CAF9;
  --blue-100: #BBDEFB;
  --blue-50:  #E3F2FD;

  --white:    #FFFFFF;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  --green-500: #22C55E;
  --wa-green:  #25D366;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(13,71,161,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(13,71,161,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-xl:  0 24px 60px rgba(13,71,161,.18), 0 8px 24px rgba(0,0,0,.10);

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.45s cubic-bezier(0.4,0,0.2,1);

  --header-h: 76px;
  --container-max: 1280px;
  --container-pad: clamp(16px, 4vw, 48px);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display:'Michroma', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button { cursor: pointer; font-family: inherit; border: none; background: none; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn--sm  { padding: 8px 18px;  font-size: 13px; }
.btn--md  { padding: 11px 24px; font-size: 14px; }
.btn--lg  { padding: 14px 32px; font-size: 15px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(21,101,192,.35);
}
.btn--primary:hover {
  background: var(--blue-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21,101,192,.45);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-600);
}
.btn--outline:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--wa {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
}
.btn--wa:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,.45);
}
.btn--ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(220,39,67,.35);
}
.btn--ig:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220,39,67,.45);
}

/* ── Section common ── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered delay helpers */
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--blue-600);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

.header.scrolled {
  background: var(--blue-700);
  box-shadow: 0 4px 20px rgba(10,25,41,.35);
  height: 64px;
}

.header__container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.header__logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition);
}
.header__logo-img:hover { opacity: .85; }

.header.scrolled .header__logo-img { height: 44px; }

/* Nav */
.header__nav { margin-left: auto; }

.nav__list {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav__link {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,.15);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.header__hamburger:hover { background: rgba(255,255,255,.15); }

.hamburger__line {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.header__hamburger.open .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.open .hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__hamburger.open .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* ── Hero content (sobre el carrusel) ── */
.hero__content {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: 80px 120px;
  width: 100%;
}

/* Badge "Empresa líder" */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-200);
  background: rgba(13,71,161,.45);
  border: 1px solid rgba(144,202,249,.3);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: background var(--transition), border-color var(--transition);
}
.hero__badge:hover {
  background: rgba(13,71,161,.6);
  border-color: rgba(144,202,249,.5);
}

.hero__badge-dot {
  width: 7px; height: 7px;
  background: var(--blue-300);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue-300);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1);   box-shadow: 0 0 8px  var(--blue-300); }
  50%       { opacity: .7; transform: scale(1.3); box-shadow: 0 0 16px var(--blue-300); }
}

.hero__title {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.hero__title-main {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  color: var(--white);
  line-height: .92;
  letter-spacing: -3px;
  text-shadow: 0 4px 32px rgba(0,0,0,.4);
}

.hero__title-sub {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.8vw, 26px);
  font-weight: 400;
  color: var(--blue-200);
  letter-spacing: .04em;
  margin-top: 10px;
}

.hero__desc {
  max-width: 560px;
  font-size: clamp(15px, 1.7vw, 17px);
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  margin-bottom: 32px;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* Contacto strip */
.hero__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
}
.hero__contact-item:hover { color: var(--white); }

.hero__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: rgba(13,71,161,.4);
  border-radius: var(--radius-sm);
  color: var(--blue-200);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.15);
  transition: background var(--transition);
}
.hero__contact-item:hover .hero__contact-icon {
  background: rgba(255,255,255,.18);
}

/* CTAs */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__ctas .btn--outline {
  color: var(--white);
  border-color: rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
}
.hero__ctas .btn--outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  color: var(--white);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.45);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  z-index: 10;
}

.hero__scroll-arrow {
  width: 20px; height: 30px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 12px;
  position: relative;
}
.hero__scroll-arrow::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 7px;
  background: rgba(255,255,255,.5);
  border-radius: 3px;
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80%       { transform: translateX(-50%) translateY(9px); opacity: 0; }
}

/* =========================================================
   HERO CAROUSEL  (.hc = hero-carousel, prefijo corto)
   ========================================================= */

/* Contenedor – ocupa todo el fondo del hero */
.hc {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* ── Track: posiciona los slides apilados ── */
.hc__track {
  position: relative;
  width: 100%; height: 100%;
}

/* ── Slide individual ── */
.hc__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Fade crossfade principal */
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  overflow: hidden;
}

/* Slide activo */
.hc__slide.is-active {
  opacity: 1;
  z-index: 2;
}

/* Slide que está saliendo (para crossfade limpio) */
.hc__slide.is-leaving {
  opacity: 0;
  z-index: 1;
}

/* ── Imagen del slide ── */
.hc__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Ken Burns base – se anula en el slide activo */
  transform: scale(1.08);
  transition: transform 0s;
}

/* Ken Burns en slide activo: zoom suave */
.hc__slide.is-active .hc__img {
  transform: scale(1);
  transition: transform 15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Overlay degradado por slide ──
   Gradient izquierda→derecha para que el texto izquierdo sea legible
   + degradado inferior para el área de dots/barra */
.hc__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(8, 20, 40, 0.88)  0%,
      rgba(10, 30, 60, 0.62) 45%,
      rgba(8, 20, 40, 0.25)  100%
    ),
    linear-gradient(
      to top,
      rgba(8, 20, 40, 0.65) 0%,
      transparent 35%
    );
  pointer-events: none;
}

/* ── Etiqueta del slide ── */
.hc__label {
  position: absolute;
  bottom: 80px; right: 40px;
  z-index: 4;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.40);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s .3s ease, transform .5s .3s ease;
  pointer-events: none;
}
.hc__slide.is-active .hc__label {
  opacity: 1;
  transform: translateY(0);
}

/* ── Contador de slides ── */
.hc__counter {
  position: absolute;
  bottom: 36px; right: 80px;
  z-index: 20;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.hc__counter-sep {
  margin-inline: 3px;
  opacity: .4;
}

#hcCurrent {
  color: var(--white);
  font-size: 15px;
}

/* ── Responsive del carrusel ── */
@media (max-width: 768px) {
  .hc__label { bottom: 60px; right: 16px; font-size: 11px; }
  .hc__counter { right: 56px; bottom: 32px; }
}

@media (max-width: 480px) {
  .hc__counter { display: none; }
}

/* ── Reducir movimiento ── */
@media (prefers-reduced-motion: reduce) {
  .hc__slide { transition-duration: .01ms; }
  .hc__slide.is-active .hc__img { transition-duration: .01ms; }
}

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding-block: 40px;
}

.stats__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.stats__item {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  position: relative;
}

.stats__item + .stats__item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--gray-200);
}

.stats__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1;
}

.stats__suffix {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--blue-400);
}

.stats__label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* =========================================================
   NOSOTROS
   ========================================================= */
.about {
  padding-block: 96px;
  background: var(--gray-50);
}

.about__content {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

/* Image */
.about__image { flex: 0 0 460px; }

.about__img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.about__img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-slow);
}
.about__img-wrapper:hover .about__img { transform: scale(1.02); }

/* Carrusel dinámico (usado en nosotros.html) */
.about-carousel { position: relative; overflow: hidden; }

.about-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.about-carousel__img.is-active { opacity: 1; }

.about__img-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  line-height: 1.2;
}
.about__img-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
}
.about__img-badge span { font-size: 12px; opacity: .85; }

/* Text */
.about__text { flex: 1; padding-top: 8px; }

.about__subtitle {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.3;
}

.about__para {
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.value-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.value-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-card__icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.value-card:hover .value-card__icon {
  background: var(--blue-600);
  color: var(--white);
}

.value-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.value-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* =========================================================
   MATERIALS
   ========================================================= */
.materials {
  padding-block: 96px;
  background: var(--white);
}

/* Category tabs */
.materials__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.mat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.mat-tab__icon {
  display: inline-flex;
  color: var(--gray-400);
  transition: color var(--transition);
}

.mat-tab:hover {
  color: var(--blue-600);
  background: var(--blue-50);
  border-color: var(--blue-200);
}
.mat-tab:hover .mat-tab__icon { color: var(--blue-500); }

.mat-tab.active {
  color: var(--white);
  background: var(--blue-600);
  border-color: var(--blue-600);
  box-shadow: 0 4px 12px rgba(21,101,192,.3);
}
.mat-tab.active .mat-tab__icon { color: var(--blue-100); }

.mat-tab__count {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  line-height: 1.5;
}
.mat-tab.active .mat-tab__count {
  color: var(--blue-700);
  background: var(--white);
}

/* Tabs extra (ocultas hasta "Mostrar más") + botón toggle */
.mat-tab--extra[hidden] { display: none; }

.mat-tab--more {
  background: transparent;
  border: 1.5px dashed var(--gray-300);
  color: var(--gray-500);
}
.mat-tab--more:hover {
  color: var(--blue-600);
  background: var(--blue-50);
  border-color: var(--blue-300);
}
.mat-tab__icon--chevron { transition: transform var(--transition); }
.mat-tab--more[aria-expanded="true"] .mat-tab__icon--chevron { transform: rotate(180deg); }

/* Badge reutilizable (banda del acordeón + panel de detalle) */
.badge-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.badge-pill--stock    { background: var(--green-500); color: var(--white); }
.badge-pill--featured { background: var(--blue-500);  color: var(--white); }

/* =========================================================
   TARJETAS DE MATERIAL (usadas en el teaser "Destacados" de
   index.html; el catálogo completo de materiales.html usa el
   acordeón de más abajo)
   ========================================================= */
.materials__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.mat-card {
  flex: 0 1 340px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.mat-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.mat-card.hidden { display: none; }

.mat-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--white);
}
.mat-card__img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}
.mat-card:hover .mat-card__img { transform: scale(1.04); }

.mat-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--blue-600);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.mat-card__badge--GREEN { background: var(--green-500); }

.mat-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mat-card__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 6px;
}
.mat-card__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}
.mat-card__desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.mat-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

@media (max-width: 768px) {
  .mat-card { flex: 0 1 calc(50% - 8px); }
}
@media (max-width: 480px) {
  .mat-card { flex: 1 1 100%; }
}

/* =========================================================
   ACORDEÓN DE MATERIALES (una banda full-width por producto,
   se expande mostrando descripción + specs + galería)
   ========================================================= */
.mat-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mat-accordion-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.mat-accordion-item:hover { box-shadow: var(--shadow-md); }
.mat-accordion-item.hidden { display: none; }

.mat-accordion-item__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 148px;
  padding: 26px 28px;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
}

.mat-accordion-item__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.55) brightness(.6);
  transition: transform var(--transition-slow);
}
.mat-accordion-item__header:hover .mat-accordion-item__bg { transform: scale(1.05); }

.mat-accordion-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,25,41,.85) 0%, rgba(10,25,41,.6) 50%, rgba(10,25,41,.3) 100%);
}

.mat-accordion-item__text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.mat-accordion-item__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-200);
}

.mat-accordion-item__name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

.mat-accordion-item__chevron {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--white);
  transition: transform var(--transition), background var(--transition);
}
.mat-accordion-item__header:hover .mat-accordion-item__chevron { background: rgba(255,255,255,.28); }
.mat-accordion-item__header[aria-expanded="true"] .mat-accordion-item__chevron {
  transform: rotate(180deg);
  background: var(--blue-600);
}

.mat-accordion-item__panel[hidden] { display: none; }
.mat-accordion-item__panel {
  border-top: 1px solid var(--gray-200);
  animation: accordion-in .3s ease;
}
@keyframes accordion-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .mat-accordion-item__header { padding: 20px; min-height: 120px; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding-block: 96px;
  background: var(--gray-50);
}

.contact__grid {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* Form */
.contact__form-wrap {
  flex: 1 1 480px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group {
  flex: 1;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.required { color: var(--blue-500); }

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  
}

.form-input::placeholder { color: var(--gray-400); }

.form-input:focus {
  background: var(--white);
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}

.form-input.error {
  border-color: #EF4444;
  background: #FFF5F5;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.form-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #EF4444;
  min-height: 16px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  color: #166534;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
}

/* Info */
.contact__info {
  flex: 0 1 380px;
}

.contact__info-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 28px;
}

.contact__info-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact__info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact__info-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact__info-icon--wa {
  background: #F0FDF4;
  color: var(--wa-green);
}

.contact__info-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 2px;
}

.contact__info-item p,
.contact__info-item a {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
  transition: color var(--transition);
}

.contact__info-item a:hover { color: var(--blue-500); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.75);
}

.footer__top { padding-block: 64px; }

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer__col { flex: 1 1 200px; }

.footer__col--brand { flex: 1 1 280px; }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  letter-spacing: -.5px;
}

.footer__tagline {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
  margin-bottom: 24px;
  max-width: 280px;
}

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

.footer__social-link {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer__social-link:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: translateY(-3px);
}

.footer__social-link--wa:hover { background: var(--wa-green); }

.footer__col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

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

.footer__link {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}
.footer__link:hover {
  color: var(--blue-200);
  transform: translateX(4px);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

.footer__contact-list svg { flex-shrink: 0; margin-top: 1px; color: var(--blue-300); }

.footer__contact-list a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer__contact-list a:hover { color: var(--blue-200); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 20px;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  width: 58px; height: 58px;
  background: var(--wa-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
}

.wa-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-900);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.wa-float__tooltip::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: var(--gray-900);
}

.wa-float:hover .wa-float__tooltip { opacity: 1; }

/* =========================================================
   SCROLL TO TOP
   ========================================================= */
.scroll-top {
  position: fixed;
  bottom: 96px; right: 28px;
  z-index: 900;
  width: 44px; height: 44px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover { background: var(--blue-500); }

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,25,41,.65);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modal-in .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-500);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: background var(--transition), color var(--transition);
}
.modal__close:hover { background: var(--gray-200); color: var(--gray-700); }

.modal__icon {
  width: 64px; height: 64px;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.modal__product {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 12px;
}

.modal__desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 24px;
}

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

/* =========================================================
   PANEL DE DETALLE — dentro de cada banda del acordeón
   (galería + specs + descripción)
   ========================================================= */
.detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.detail__gallery {
  background: var(--gray-50);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--gray-200);
}

.detail__main-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--gray-600);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: color var(--transition), transform var(--transition);
}
.detail__nav-btn:hover { color: var(--blue-600); transform: translateY(-50%) scale(1.08); }
.detail__nav-btn--prev { left: 10px; }
.detail__nav-btn--next { right: 10px; }
.detail__nav-btn[hidden] { display: none; }

.detail__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail__thumbs[hidden] { display: none; }

.detail__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.detail__thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail__thumb:hover { border-color: var(--blue-300); }
.detail__thumb.active { border-color: var(--blue-600); }

.detail__info {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail__desc {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 20px;
}
.detail__desc[hidden] { display: none; }

.detail__specs-section[hidden] { display: none; }

.detail__specs-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.detail__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.detail__spec-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 5px 11px;
}

.detail__bullets-section[hidden] { display: none; }

.detail__bullets-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.detail__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}
.detail__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
}
.detail__bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  flex-shrink: 0;
}

.detail__ficha {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 20px;
  width: fit-content;
  transition: color var(--transition);
}
.detail__ficha:hover { color: var(--blue-700); }
.detail__ficha[hidden] { display: none; }

.detail__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}
.detail__actions .btn { flex: 1 1 auto; }

@media (max-width: 860px) {
  .detail__grid { grid-template-columns: 1fr; }
  .detail__gallery { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 24px; }
  .detail__info { padding: 24px; }
}

/* =========================================================
   PLACEHOLDER IMAGES (SVG gradients)
   ========================================================= */
img[src$=".jpg"]:not([src^="http"]) {
  background: linear-gradient(135deg, var(--blue-100) 0%, var(--gray-200) 100%);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ── Tablet ≤ 1024px ── */
@media (max-width: 1024px) {
  .about__content { gap: 40px; }
  .about__image { flex: 0 0 360px; }
  .about__img { height: 420px; }

  .contact__grid { flex-direction: column; }
  .contact__info { flex: none; width: 100%; }
}

/* ── Tablet small / Landscape mobile ≤ 768px ── */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* ── Header mobile ── */
  .header__container { gap: 12px; }

  /* Nav: oculto completamente cuando cerrado para no bloquear eventos */
  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    /* ← CORRECCIÓN: visibility + pointer-events impiden el bloqueo táctil */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
    z-index: 1200;   /* por encima del header */
    margin-left: 0;
  }

  /* Nav abierto */
  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .3s ease, transform .3s ease, visibility 0s 0s;
  }

  .nav__list { flex-direction: column; gap: 0; }

  .nav__link {
    border-radius: 0;
    padding: 14px var(--container-pad);
    font-size: 16px;
    width: 100%;
    color: var(--gray-700);        /* dark en fondo blanco */
    background: transparent;
  }
  .nav__link:hover,
  .nav__link.active {
    color: var(--blue-600);
    background: var(--blue-50);
  }

  .nav__link::after { display: none; }

  /* Hamburger siempre visible y sobre todo */
  .header__hamburger {
    display: flex;
    position: relative;
    z-index: 1201;
  }

  /* Hero: fallback min-height para iOS/Android */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* About */
  .about__content { flex-direction: column; gap: 32px; }
  .about__image { flex: none; width: 100%; }
  .about__img { height: 300px; }
  .about__img-badge { bottom: -12px; right: 12px; }

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

  /* Contact */
  .contact__form-wrap { padding: 24px; }
  .form-row { flex-direction: column; gap: 0; }

  /* Stats */
  .stats__item + .stats__item::before { display: none; }
  .stats__item { flex: 1 1 140px; }

  /* Footer */
  .footer__grid { gap: 28px; }
  .footer__col { flex: 1 1 45%; }
  .footer__col--brand { flex: 1 1 100%; }
}

/* ── Mobile ≤ 480px ── */
@media (max-width: 480px) {
  .hero__title-main { font-size: clamp(40px, 12vw, 60px); }
  .hero__contact { flex-direction: column; gap: 10px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { justify-content: center; }

  .stats__grid { flex-direction: column; }

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

  .footer__col { flex: 1 1 100%; }
  .footer__bottom .container { justify-content: center; text-align: center; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   PAGE HERO  (cabecera interna para páginas interiores)
   ========================================================= */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 64px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

/* Hero de Nosotros ("Construyendo confianza"): mismo degradé, de fondo
   una foto en vez de color plano */
body[data-page="nosotros"] .page-hero {
  background:
    linear-gradient(135deg, rgba(10,25,41,.88) 0%, rgba(13,71,161,.82) 60%, rgba(21,101,192,.75) 100%),
    url('../img/Salbo_fondo.webp') center / cover no-repeat;
}

/* Patrón radial decorativo */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(30,136,229,.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 80% 70%, rgba(13,71,161,.4) 0%, transparent 60%);
  pointer-events: none;
}

/* Dots decorativos */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Breadcrumb */
.page-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}

.page-hero__breadcrumb a {
  color: var(--blue-200);
  transition: color var(--transition);
}
.page-hero__breadcrumb a:hover { color: var(--white); }

.page-hero__breadcrumb-sep {
  opacity: .4;
  font-size: 11px;
}

/* Title */
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.page-hero__title span {
  color: var(--blue-200);
}

/* Description */
.page-hero__desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: calc(var(--header-h) + 36px);
    padding-bottom: 44px;
  }
}

/* =========================================================
   CTA BANNER  (sección de llamado a la acción en inicio)
   ========================================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  padding-block: 96px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 10% 50%, rgba(21,101,192,.35) 0%, transparent 65%),
    radial-gradient(ellipse 60% 60% at 90% 50%, rgba(13,71,161,.3) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.cta-banner__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-200);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-banner__desc {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 36px;
}

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

.cta-banner .btn--outline {
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.cta-banner .btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .cta-banner { padding-block: 64px; }
  .cta-banner__actions { flex-direction: column; align-items: stretch; }
  .cta-banner__actions .btn { justify-content: center; }
}

/* =========================================================
   FEATURED SECTION  (3 tarjetas destacadas en inicio)
   ========================================================= */
.featured {
  padding-block: 96px;
  background: var(--white);
}

.featured__cta-wrap {
  text-align: center;
  margin-top: 48px;
}

/* =========================================================
   ABOUT PREVIEW  (teaser nosotros en inicio)
   ========================================================= */
.about-preview {
  padding-block: 96px;
  background: var(--gray-50);
}

/* =========================================================
   NOSOTROS – contenido adicional
   ========================================================= */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.mission-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.mission-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.mission-card__icon {
  width: 56px; height: 56px;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition), color var(--transition);
}
.mission-card:hover .mission-card__icon {
  background: var(--blue-600);
  color: var(--white);
}

.mission-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.mission-card__desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .mission-grid { grid-template-columns: 1fr; }
}

/* Footer logo image */
.footer__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* Email obfuscado en páginas de fondo claro */
.js-email-link {
  font-size: 14px;
  color: var(--blue-500);
  transition: color var(--transition);
}
.js-email-link:hover { color: var(--blue-700); text-decoration: underline; }
