:root{
  --verde:#00f526;
  --negro:#050505;
  --gris:#242424;
  --gris-claro:#f4f5f4;
  --blanco:#ffffff;
  --texto:#171717;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--texto);
  
}


a{
  text-decoration:none;
}

/* =========================
   ENCABEZADO Y MENÚ
========================= */

header{
  position:sticky;
  top:0;
  z-index:1000;
  display:grid;
  grid-template-columns:90px 1fr auto;
  align-items:center;
  gap:24px;
  min-height:92px;
  padding:10px 5%;
  background:var(--negro);
  box-shadow:0 4px 16px rgba(0,0,0,.30);
  
}

header > a{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

header img{
  display:block;
  width:70px;
  height:auto;
  object-fit:contain;
}

/* Menú centrado */
.menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:32px;
  width:100%;
}

.menu a{
  position:relative;
  color:var(--verde);
  font-size:17px;
  font-weight:700;
  white-space:nowrap;
  transition:color .2s ease;
}

.menu a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-8px;
  width:0;
  height:2px;
  background:var(--verde);
  transform:translateX(-50%);
  transition:width .2s ease;
}

.menu a:hover{
  color:var(--blanco);
}

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

/* Redes sociales al lado derecho */
.redes{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  min-width:max-content;
}

.redes a{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:1px solid rgba(0,245,38,.45);
  border-radius:50%;
  color:var(--verde);
  font-size:20px;
  transition:.2s ease;
}

.redes a:hover{
  color:var(--negro);
  background:var(--verde);
  transform:translateY(-2px);
}

/* Botón del menú móvil */
.menu-btn{
  display:none;
  margin-left:auto;
  padding:9px 12px;
  border:1px solid var(--verde);
  border-radius:8px;
  color:var(--verde);
  background:transparent;
  font-size:23px;
  cursor:pointer;
}

/* =========================
   HERO
========================= */

.hero{
  min-height:470px;
  display:grid;
  place-items:center;
  padding:60px 18px;
  text-align:center;
  color:var(--blanco);
  background:
    linear-gradient(rgba(3, 3, 3, 0.37), rgba(12, 12, 12, 0.749)),
    url("/img/remotasfon.jpeg") center/cover no-repeat;
}

.hero h1{
  margin:0 0 15px;
  font-size:clamp(42px,8vw,82px);
  text-transform:uppercase;
}

.hero h1 span{
  color:var(--verde);
}

.hero p{
  max-width:760px;
  margin:0 auto 28px;
  font-size:20px;
  line-height:1.6;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:14px 22px;
  border-radius:9px;
  color:var(--negro);
  background:var(--verde);
  font-weight:800;
}

/* =========================
   SECCIONES
========================= */

section{
  padding:72px 0;
}

.wrap{
  width:min(1180px, calc(100% - 30px));
  margin:auto;
}

.title{
  max-width:850px;
  margin:0 auto 36px;
  text-align:center;
}

.title small{
  color:#00bb1d;
  font-weight:800;
  text-transform:uppercase;
}

.title h2{
  margin:8px 0;
  font-size:clamp(32px,5vw,54px);
  text-transform:uppercase;
}

.title p{
  color:#555;
  font-size:18px;
  line-height:1.6;
}

.compat{
  background:var(--gris-claro);
}

.search{
  display:flex;
  gap:12px;
  max-width:680px;
  margin:0 auto 30px;
  padding:14px 18px;
  border:2px solid #dce3dc;
  border-radius:12px;
  background:var(--blanco);
}

.search input{
  width:100%;
  border:0;
  outline:0;
  font-size:17px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
}

.card{
  overflow:hidden;
  border:1px solid #e3e8e3;
  border-radius:18px;
  background:var(--blanco);
  box-shadow:0 12px 30px rgba(0,0,0,.12);
}

.card.hide{
  display:none;
}

.head{
  padding:20px 22px;
  color:var(--blanco);
  background:#080808;
}

.head h3{
  margin:0;
  font-size:24px;
}

.head p{
  margin:6px 0 0;
  color:#ccc;
}

.body{
  padding:22px;
}

.body ul{
  display:grid;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}

.body li{
  padding-bottom:9px;
  border-bottom:1px solid #eee;
  line-height:1.4;
}

.body li::before{
  content:"✓";
  margin-right:9px;
  color:#00c91d;
  font-weight:900;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}

.chip{
  padding:7px 11px;
  border-radius:999px;
  color:var(--verde);
  background:var(--negro);
  font-weight:700;
}

.notice{
  margin-top:28px;
  padding:18px;
  border-left:5px solid var(--verde);
  border-radius:9px;
  color:#eee;
  background:#101010;
  line-height:1.6;
}

.steps{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}

.step{
  padding:24px;
  border-radius:16px;
  color:var(--blanco);
  background:var(--negro);
}

.step i{
  color:var(--verde);
  font-size:28px;
}

.step p{
  color:#ccc;
  line-height:1.5;
}

.cta{
  text-align:center;
  background:var(--verde);
}

.cta h2{
  margin-top:0;
  font-size:clamp(32px,5vw,52px);
}

.cta .btn{
  color:var(--verde);
  background:var(--negro);
}

footer{
  padding:28px;
  color:#ccc;
  background:var(--negro);
  text-align:center;
}

.slide-image-link img{
    width:100%;
    height:100%;
    object-fit:cover;
}

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

@media(max-width:950px){
  header{
    grid-template-columns:70px 1fr auto;
  }

  .menu{
    gap:18px;
  }

  .menu a{
    font-size:15px;
  }

  .redes{
    gap:10px;
  }

  .redes a{
    width:36px;
    height:36px;
    font-size:18px;
  }
}

@media(max-width:850px){
  header{
    display:flex;
    flex-wrap:wrap;
    padding:10px 16px;
  }

  .menu-btn{
    display:block;
  }

  .menu{
    display:none;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    padding:12px 0;
    border-top:1px solid #222;
  }

  .menu.open{
    display:flex;
  }

  .menu a{
    width:100%;
    padding:12px;
    border-radius:8px;
    text-align:center;
    font-size:17px;
  }

  .menu a:hover{
    color:var(--negro);
    background:var(--verde);
  }

  .menu a::after{
    display:none;
  }

  .redes{
    order:4;
    justify-content:center;
    width:100%;
    padding:12px 0 4px;
    border-top:1px solid #222;
  }

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

  .hero{
    min-height:420px;
  }
}

/* =========================================================
   CORRECCIÓN PARA TELÉFONOS E IPHONE
   Mantiene el encabezado compacto y evita texto recortado
========================================================= */

html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

.hero,
.hero > div{
  width:100%;
  max-width:100%;
  min-width:0;
}

.hero h1,
.hero p{
  max-width:100%;
  overflow-wrap:break-word;
  word-break:normal;
}

@media(max-width:850px){

  /* Encabezado compacto: logo y botón en una sola fila */
  header{
    min-height:82px;
    align-items:center;
    padding:10px 18px;
  }

  header img{
    width:62px;
  }

  .menu-btn{
    flex:0 0 auto;
  }

  /* Las redes se muestran solamente al abrir el menú */
  .redes{
    display:none;
    order:4;
    justify-content:center;
    width:100%;
    padding:14px 0 5px;
    border-top:1px solid #222;
  }

  .menu.open + .redes{
    display:flex;
  }

  /* Hero ajustado al ancho real del teléfono */
  .hero{
    min-height:460px;
    padding:54px 18px;
    overflow:hidden;
  }

  .hero h1{
    width:100%;
    margin:0 auto 18px;
    font-size:clamp(35px,10vw,54px);
    line-height:1.02;
    letter-spacing:0;
  }

  .hero p{
    width:100%;
    max-width:560px;
    margin:0 auto 26px;
    padding:0 4px;
    font-size:18px;
    line-height:1.55;
  }
}

@media(max-width:480px){

  header{
    padding:9px 14px;
  }

  header img{
    width:57px;
  }

  .menu-btn{
    padding:8px 11px;
    font-size:21px;
  }

  .hero{
    min-height:430px;
    padding:45px 14px;
  }

  .hero h1{
    font-size:clamp(31px,9.5vw,42px);
    line-height:1.05;
  }

  .hero p{
    font-size:16px;
    line-height:1.5;
  }

  .title h2{
    font-size:30px;
  }

  .head h3{
    font-size:21px;
  }
}
