/* HERO FULL WIDTH + SLIDER */
.hero{
  position:relative;
  overflow:hidden;
  width:100%;
  min-height:520px;
  margin:0;                 /* full horizontal */
  border-radius:0;          /* full horizontal */
  background:#0B0F14;
  box-shadow:var(--shadow);
}

/* capa de imagen 1 y 2 para hacer fade suave */
.hero__bg,
.hero__bg2{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  transform:scale(1.02);
  transition:opacity .8s ease;
  will-change: opacity;
}

/* Overlay oscuro igual al estilo de tu captura */
.hero__bg::before,
.hero__bg2::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,
    rgba(11,15,20,.85) 0%,
    rgba(11,15,20,.65) 38%,
    rgba(11,15,20,.22) 72%,
    rgba(11,15,20,.10) 100%
  );
}

/* Estado inicial: bg visible, bg2 oculto */
.hero__bg{opacity:1}
.hero__bg2{opacity:0}

.hero__content{
  position:relative;
  padding:72px 0;
}

.hero__inner{
  width:min(var(--container), calc(100% - (var(--pad)*2)));
  margin:0 auto;
  max-width:720px; /* bloque de texto a la izquierda como la captura */
}

.hero__title{
  margin:0 0 10px;
  font-size:clamp(32px, 3.4vw, 54px);
  line-height:1.02;
  color:#fff;
  letter-spacing:-.4px;
}

.hero__subtitle{
  margin:0 0 18px;
  color:rgba(255,255,255,.80);
  font-size:15px;
  max-width:560px;
}

.hero__cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}

.hero__hint{
  margin-top:14px;
  color:rgba(255,255,255,.72);
  font-size:12px;
}

@media (max-width: 900px){
  .hero{min-height:560px}
  .hero__content{padding:56px 0}
}

/* === Alineación profesional del contenido del hero === */
/* Usamos el mismo ancho del container y ajustamos el padding del bloque de texto */
.hero__content{
  position:relative;
  padding:72px 0;
}

.hero__inner{
  width:min(var(--container), calc(100% - (var(--pad) * 2)));
  margin:0 auto;

  /* AQUI se controla la alineación fina hacia la izquierda */
  padding-left: 0px;   /* prueba 0px / 6px / 10px según tu gusto */
  max-width: 720px;    /* mantiene el bloque compacto como en tu captura */
}

/* En móvil lo dejamos normal para evitar cortes */
@media (max-width: 900px){
  .hero__inner{
    padding-left: 0;
    max-width: 100%;
  }
}



/* === FIX DEFINITIVO: alinear el bloque del texto del hero a la izquierda === */
/* Motivo: .hero__inner estaba centrado por margin: 0 auto; */

.hero__content{
  position: relative;
  padding: 72px 0;
}

/* El contenedor del texto ya NO va centrado */
.hero__inner{
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-left: 0;     /* pega el bloque a la izquierda */
  margin-right: auto; /* evita que se centre */
  max-width: 720px;   /* mantiene el ancho compacto tipo “captura” */
  padding-left: 0;    /* no necesitamos padding para mover el bloque */
}

/* En móvil, lo dejamos natural para no forzar cortes */
@media (max-width: 900px){
  .hero__inner{
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.hero__inner{ transform: translateX(125px); }

/* =========================
   Home · Categorías
   Paleta: amarillo acento + azul técnico + base neutra
========================= */

.home-categories{
  padding:64px 0;
  background:#f7f8fa;
}

.home-categories__head{
  max-width:680px;
  margin-bottom:28px;
}

.home-categories__head h2{
  margin:0 0 8px;
  font-size:clamp(22px, 2.2vw, 28px);
  letter-spacing:-.2px;
}

.home-categories__head p{
  margin:0;
  color:rgba(11,15,20,.70);
}

.home-categories__grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

@media (max-width:1024px){
  .home-categories__grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:640px){
  .home-categories__grid{ grid-template-columns:1fr; }
}

.home-cat-card{
  display:flex;
  gap:14px;
  padding:18px;
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(11,15,20,.08);
  box-shadow:0 10px 28px rgba(11,15,20,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-cat-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 36px rgba(11,15,20,.12);
  border-color:rgba(255,196,0,.35); /* acento amarillo */
}

/* Icono con acento amarillo (no fondo sólido) */
.home-cat-card__ico{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(255,196,0,.14);
  border:1px solid rgba(255,196,0,.28);
  color:#111;
  font-size:18px;
  flex:0 0 auto;
}

.home-cat-card__body strong{
  display:block;
  font-size:15px;
  font-weight:700;
  margin-bottom:4px;
}

.home-cat-card__body small{
  display:block;
  font-size:14px;
  line-height:1.45;
  color:rgba(11,15,20,.72);
  margin-bottom:8px;
}

/* CTA en azul técnico */
.home-cat-card__cta{
  color:#1457FF;
  font-weight:600;
  font-size:13.5px;
}

/* =========================
   Home · Marcas destacadas
   Estilo premium, coherente con página Marcas
========================= */

.home-brands{
  padding:64px 0;
  background:#ffffff;
}

.home-brands__head{
  max-width:680px;
  margin-bottom:28px;
}

.home-brands__head h2{
  margin:0 0 8px;
  font-size:clamp(22px, 2.2vw, 28px);
  letter-spacing:-.2px;
}

.home-brands__head p{
  margin:0;
  color:rgba(11,15,20,.70);
}

.home-brands__grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:20px;
}

@media (max-width:640px){
  .home-brands__grid{
    grid-template-columns:1fr;
  }
}

/* Card de marca */
.home-brand-card{
  position:relative;
  height:180px;
  border-radius:18px;
  overflow:hidden;
  background:#000;
  box-shadow:0 12px 32px rgba(11,15,20,.10);
  transition:transform .22s ease, box-shadow .22s ease;
}

/* Imagen cubre toda la card */
.home-brand-card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

/* Nombre de la marca */
.home-brand-card span{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:10px 14px;
  background:linear-gradient(
    to top,
    rgba(0,0,0,.70),
    rgba(0,0,0,.30),
    rgba(0,0,0,0)
  );
  color:#fff;
  font-weight:600;
  font-size:13.5px;
  letter-spacing:.4px;
}

/* Hover */
.home-brand-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 44px rgba(11,15,20,.18);
}

.home-brand-card:hover img{
  transform:scale(1.03);
}

/* CTA inferior */
.home-brands__cta{
  margin-top:28px;
}

.home-brands__cta .btn{
  font-weight:600;
}

/* CTA premium - Ver todas las marcas */
.btn--outline-premium{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 22px;
  border-radius:999px;
  font-weight:600;
  font-size:14px;
  color:#1457FF; /* azul técnico */
  background:#fff;
  border:1.5px solid rgba(255,196,0,.55); /* amarillo corporativo */
  transition:all .2s ease;
}

.btn--outline-premium::after{
  content:"→";
  font-size:14px;
  transition:transform .2s ease;
}

.btn--outline-premium:hover{
  background:rgba(255,196,0,.12);
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(11,15,20,.10);
}

.btn--outline-premium:hover::after{
  transform:translateX(3px);
}

/* =========================
   Home · Cómo funciona la cotización
   Estilo premium, claro y B2B
========================= */

.home-how{
  padding:64px 0;
  background:#f7f8fa;
}

.home-how__head{
  max-width:680px;
  margin-bottom:32px;
}

.home-how__head h2{
  margin:0 0 8px;
  font-size:clamp(22px, 2.2vw, 28px);
  letter-spacing:-.2px;
}

.home-how__head p{
  margin:0;
  color:rgba(11,15,20,.70);
}

/* Grid de pasos */
.home-how__grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}

@media (max-width:1024px){
  .home-how__grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .home-how__grid{ grid-template-columns:1fr; }
}

/* Card */
.home-how__card{
  position:relative;
  padding:22px;
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(11,15,20,.08);
  box-shadow:0 10px 28px rgba(11,15,20,.06);
}

/* Número del paso */
.home-how__step{
  position:absolute;
  top:-14px;
  left:22px;
  width:32px;
  height:32px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#FFC400; /* amarillo corporativo */
  color:#111;
  font-weight:700;
  box-shadow:0 6px 18px rgba(255,196,0,.35);
}

.home-how__card h3{
  margin:12px 0 6px;
  font-size:16px;
  letter-spacing:-.1px;
}

.home-how__card p{
  margin:0;
  font-size:14px;
  line-height:1.45;
  color:rgba(11,15,20,.72);
}

/* CTA final */
.home-how__cta{
  margin-top:36px;
}


/* =========================
   Home · Por qué elegirnos
   Confianza, claridad y B2B
========================= */

.home-why{
  padding:64px 0;
  background:#ffffff;
}

.home-why__head{
  max-width:680px;
  margin-bottom:32px;
}

.home-why__head h2{
  margin:0 0 8px;
  font-size:clamp(22px, 2.2vw, 28px);
  letter-spacing:-.2px;
}

.home-why__head p{
  margin:0;
  color:rgba(11,15,20,.70);
}

/* Grid */
.home-why__grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
}

@media (max-width:1024px){
  .home-why__grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:640px){
  .home-why__grid{ grid-template-columns:1fr; }
}

/* Item */
.home-why__item{
  padding:22px;
  background:#f7f8fa;
  border-radius:18px;
  border:1px solid rgba(11,15,20,.08);
}

.home-why__ico{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(255,196,0,.16); /* amarillo corporativo */
  border:1px solid rgba(255,196,0,.32);
  font-size:18px;
  margin-bottom:12px;
}

.home-why__item h3{
  margin:0 0 6px;
  font-size:15px;
  font-weight:700;
  letter-spacing:-.1px;
}

.home-why__item p{
  margin:0;
  font-size:14px;
  line-height:1.45;
  color:rgba(11,15,20,.72);
}


/* =========================
   Home · CTA Final
   Fondo amarillo elegante
========================= */

.home-cta-final{
  padding:72px 0;
  background:#FFC400; /* amarillo corporativo */
}

.home-cta-final__box{
  max-width:760px;
}

.home-cta-final h2{
  margin:0 0 10px;
  font-size:clamp(22px, 2.4vw, 30px);
  letter-spacing:-.2px;
  color:#111;
}

.home-cta-final p{
  margin:0 0 22px;
  font-size:15px;
  line-height:1.5;
  color:rgba(11,15,20,.85);
}

/* Ajuste del botón sobre fondo amarillo */
.home-cta-final .btn--primary{
  background:#111;
  color:#fff;
  border-color:#111;
  box-shadow:0 14px 34px rgba(11,15,20,.25);
}

.home-cta-final .btn--primary:hover{
  background:#000;
}
