/* =======================================================================
  HOME.CSS — HERO (AISLADO) ✅  (COMPLETO / LIMPIO)
  Archivo: assets/home/home.css   (solo hero)
  - Reset mínimo dentro de .wf-home
  - Hero/Slider responsive SIN desborde
  - ✅ FIX TÁCTIL: swipe horizontal del hero + scroll vertical de la página
  - ✅ sin “bloqueo” al arrastrar desde el contenido
======================================================================= */

/* Variables base (pueden quedarse globales) */
:root{
  --wificor:#0F766E;
  --wificor2:#0b5f59;
  --black:#0b0f14;
  --muted:#6b7280;
  --line:rgba(0,0,0,.08);
  --shadow:0 12px 30px rgba(0,0,0,.12);
}

/* Reset mínimo SOLO dentro del home */
.wf-home,
.wf-home *,
.wf-home *::before,
.wf-home *::after{ box-sizing:border-box; }

.wf-home img{ max-width:100%; display:block; }
.wf-home a{ text-decoration:none; }

/* Wrapper (se usa en hero.php) */
.wf-home .wf-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

/* =======================================================================
  HERO / SLIDER — ERP PRO (RESPONSIVE SIN DESBORDE)
======================================================================= */

.wf-home .wf-hero{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.06);
}

/* contenedor slider */
.wf-home .wf-slider{
  position:relative;
  height:560px;            /* escritorio */
  overflow:hidden;
  border-radius:0;
  background:#eef2f6;

  /* ✅ CLAVE: deja al browser decidir dirección (scroll Y + swipe X) */
  touch-action: pan-x pan-y;

  /* mejora táctil */
  -webkit-tap-highlight-color: transparent;
  user-select:none;
  -webkit-user-select:none;
}

/* slides */
.wf-home .wf-slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  opacity:0;
  transform:scale(1.02);
  transition:opacity .55s ease, transform .9s ease;
}
.wf-home .wf-slide.is-on{ opacity:1; transform:scale(1); }

/* overlay */
.wf-home .wf-slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,
    rgba(11,15,20,.62) 0%,
    rgba(11,15,20,.34) 42%,
    rgba(11,15,20,.18) 70%,
    rgba(11,15,20,.10) 100%
  );
  pointer-events:none;
}

/* Flechas */
.wf-home .wf-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:4;

  width:46px;
  height:46px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.35);
  color:#fff;

  font-size:28px;
  font-weight:900;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  backdrop-filter:blur(4px);
  -webkit-tap-highlight-color: transparent;
}
.wf-home .wf-prev{ left:14px; }
.wf-home .wf-next{ right:14px; }

@media (hover:hover){
  .wf-home .wf-arrow:hover{ background:rgba(0,0,0,.48); }
}

/* Bullets */
.wf-home .wf-bullets{
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  z-index:4;

  display:flex;
  gap:8px;
}
.wf-home .wf-bullets button{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  background:rgba(255,255,255,.42);
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}
.wf-home .wf-bullets button.on{
  background:#fff;
  width:26px;
}

/* contenido */
.wf-home .wf-heroContent{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  z-index:3;
  padding:0;
}

.wf-home .wf-heroBox{ max-width:650px; }

/* pill */
.wf-home .wf-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:30px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  font-weight:1000;
  letter-spacing:.28px;
  font-size:12px;
  text-transform:uppercase;
}

/* título */
.wf-home .wf-heroTitle{
  margin:14px 0 10px;
  font-size:50px;
  line-height:1.05;
  color:#fff;
  font-weight:1200;
  letter-spacing:-.6px;
}
.wf-home .wf-heroTitle span{ color:#7df3ea; }

/* texto */
.wf-home .wf-heroText{
  margin:0 0 18px;
  color:rgba(255,255,255,.88);
  font-weight:750;
  line-height:1.55;
  max-width:560px;

  /* ✅ texto seleccionable si quieres copiar */
  user-select:text;
  -webkit-user-select:text;
}

/* botones */
.wf-home .wf-heroBtns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Botones SOLO del HERO */
.wf-home .wf-hero .wf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:46px;
  padding:0 18px;
  border-radius:12px;
  font-weight:1100;
  letter-spacing:.2px;
  border:1px solid transparent;
  -webkit-tap-highlight-color: transparent;

  /* ✅ clic seguro */
  pointer-events:auto;
}

/* Ver planes */
.wf-home .wf-hero .wf-btn.primary{
  background:var(--wificor);
  border-color:var(--wificor);
  color:#fff;
}
.wf-home .wf-hero .wf-btn.primary:hover{
  background:var(--wificor2);
  border-color:var(--wificor2);
}

/* Cobertura / Contacto (negro) */
.wf-home .wf-hero .wf-btn.ghost{
  background:#000;
  border-color:#000;
  color:#fff;
}
.wf-home .wf-hero .wf-btn.ghost:hover{
  background:#111;
  border-color:#111;
}

/* =======================
   RESPONSIVE
======================= */

/* tablet */
@media (max-width:980px){
  .wf-home .wf-slider{ height:460px; }
  .wf-home .wf-heroTitle{ font-size:40px; }
}

/* mobile */
@media (max-width:680px){
  .wf-home .wf-slider{
    height:280px !important;
    min-height:280px !important;

    /* ✅ refuerzo móvil */
    touch-action: pan-x pan-y;
  }

  .wf-home .wf-slide{ background-position:center top; }

  .wf-home .wf-heroContent{
    align-items:flex-start;
    padding-top:14px;
    padding-bottom:40px;
  }

  .wf-home .wf-heroBox{ max-width:520px; }

  .wf-home .wf-pill{
    height:24px;
    font-size:10.5px;
    padding:0 10px;
  }

  .wf-home .wf-heroTitle{
    margin:8px 0 6px;
    font-size:26px;
    line-height:1.06;
  }

  .wf-home .wf-heroText{
    margin:0 0 10px;
    font-size:13px;
    line-height:1.42;
    max-width:520px;
  }

  .wf-home .wf-hero .wf-heroBtns .wf-btn{
    height:34px;
    padding:0 14px;
    font-size:13px;
    font-weight:900;
    border-radius:9px;
  }

  .wf-home .wf-arrow{ display:none; }
  .wf-home .wf-bullets{ bottom:8px; }
}

/* móviles chiquitos */
@media (max-width:420px){
  .wf-home .wf-slider{
    height:250px !important;
    min-height:250px !important;
  }

  .wf-home .wf-heroTitle{ font-size:24px; }

  .wf-home .wf-hero .wf-heroBtns .wf-btn{
    height:32px;
    padding:0 12px;
    font-size:12.5px;
  }
}

/* mini anim */
.wf-home .wf-heroBox.is-changing{
  opacity:.92;
  transform:translateY(1px);
  transition:opacity .18s ease, transform .18s ease;
}
