 :root{
  --color1:#1aa8c8;
  --color2: #73b891;
  --color3: #a4c741;
  --colorfondo: #010018;
 } 

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}
section {
  scroll-margin-top: 130px; /* alto del nav */
}

body {
  background: #f7f9fc;
  color: var(--colorfondo);
  padding-top: 80px;
}
a{
  text-decoration: none;
  color: white;
}

/*---------MENU--------*/
.navbar {
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  z-index: 10000;
  isolation: isolate;
  width: 100%;
  padding: 15px 60px;
  background: #e5e7eb;
  align-items: center;
  align-content: space-between;
}
.hover-underline {
        font-size: 1rem;
        position: relative;
        display: inline-block;
}
.hover-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--color1) , var(--color2), var(--color3));
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-out;
}
.hover-underline::before {
  top: -5px;
  transform-origin: left;
}
.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}
.logo img{
  display: flex;
  width: 70px;
  height: auto;
}
.boton_login{
  background: var(--color1);
  border-radius: 8px;
  margin-left: auto;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boton_login button {
  border: none;
  display: flex;
  align-items: center;
  color: white;  
  background: var(--color1);
  padding: 2px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.boton_login button:hover{
  color: black;
}
.icono_login{
  width: 20px;
  height: 20px;
  margin: 0px 3px;
}
.navbar nav{
  display: flex;
  gap: 5px;
  padding-left: 10%;
}
.navbar a:hover{
  color: var(--color1);
}
.navbar nav a {
  margin: 0 15px;
  text-decoration: none;
  color: black;
}
/* FIN BARRA MENU*/

.principal {
  background: radial-gradient(circle at right, #0f766e, #020617);
  color: white;
  padding: 100px 60px;
  background-image: url(imgs/fondo_fibra.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.badge img{
  width: 30px;
  height: auto;
  margin-right: 10px;
}
.principal h1 {
  font-size: 52px;
  margin: 20px 0;
}
.principal h1 span {
  background: linear-gradient(45deg, var(--color1), var(--color3));
  margin-left: 0.2em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.principal-buttons{
  padding: 15px 0;
  display: flex;
  flex-direction: row;
}
.principal-buttons button {
  margin: 10px 15px;
  padding: 14px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}
.button {
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  padding-block: 0.5rem;
  padding-inline: 1.25rem;
  background-color: var(--color1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffff;
  gap: 10px;
  font-weight: bold;
  border: 3px solid #ffffff4d;
  outline: none;
  overflow: hidden;
  font-size: 15px;
  cursor: pointer;
}
.icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease-in-out;
}
.button:hover {
  transform: scale(1.05);
  border-color: #fff9;
}
.button:hover .icon {
  transform: translate(4px);
}
.button:hover::before {
  animation: shine 1.5s ease-out infinite;
}
.button::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0) 70%
  );
  top: 0;
  left: -100px;
  opacity: 0.6;
}
@keyframes shine {
  0% {
    left: -100px;
  }
  60% {
    left: 100%;
  }
  to {
    left: 100%;
  }
}
.button_cobertura {
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  padding-block: 0.5rem;
  padding-inline: 1.25rem;
  background-color: var(--color2);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffff;
  gap: 10px;
  font-weight: bold;
  border: 3px solid #ffffff4d;
  outline: none;
  overflow: hidden;
  font-size: 15px;
  cursor: pointer;
}
.icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease-in-out;
}
.button_cobertura:hover {
  transform: scale(1.05);
  border-color: #fff9;
}
.button_cobertura:hover .icon {
  transform: translate(4px);
}
.button_cobertura:hover::before {
  animation: shine 1.5s ease-out infinite;
}
.button_cobertura::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0) 70%
  );
  top: 0;
  left: -100px;
  opacity: 0.6;
}
@keyframes shine {
  0% {
    left: -100px;
  }
  60% {
    left: 100%;
  }
  to {
    left: 100%;
  }
}
/* fin boton animado*/

.principal-features {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 25px;
  margin-top: 30px;
}
.principal-features span{
  font-weight: 600;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iconos{
  width: 30px;
  margin: 0 10px;
}
#planes-todos{
}
.plan-ideal{
  text-align: center;
  margin: 30px 0px -50px 0px;
}
.plan-ideal h2 span {
  color: var(--color1);
}
.planes{
  display: flex;
  align-items: center;
  position: relative;
  gap: 40px;
  margin-top: 25px;
  max-width: 1200px;
}
.cartas-planes {
  display: flex;
  gap: 32px; 
  margin: 50px auto;
}
/*tarjetas animadas*/
.card {
  --card-bg: #ffffff;
  --card-accent: var(--color1);
  --card-accent-p:rgb(255, 191, 72);
  --card-text: #1e293b;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  width: 250px;
  height: 350px;
  background: var(--card-bg);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}
.card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card__content {
  padding: 1.25em;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  position: relative;
  z-index: 2;
}
.card__badge {
  position: absolute;
  top: 10px;
  right: 12px;
  background: #ff5900;
  color: white;
  padding: 0.25em 0.5em;
  border-radius: 999px;
  font-size: 0.7em;
  font-weight: 600;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}
.card__image {
  width: 100%;
  height: 10px;
  background: linear-gradient(45deg, var(--color1), var(--color3));
  border-radius: 12px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 30%
    ),
    repeating-linear-gradient(
      45deg,
      rgba(139, 92, 246, 0.1) 0px,
      rgba(139, 92, 246, 0.1) 2px,
      transparent 2px,
      transparent 4px
    );
  opacity: 0.5;
}
.card__text {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}
.card__title {
  color: var(--card-text);
  font-size: 1.8em;
  margin: 0;
  font-weight: 700;
  transition: all 0.3s ease;
  line-height: 1.0;
  margin-bottom: 10px;
}
.card__title-p {
  color: var(--card-accent-p);
  font-size: 1.8em;
  margin: 0;
  font-weight: 700;
  transition: all 0.3s ease;
  line-height: 1.0;  
  margin-bottom: 10px;
}
#card-descripcion{
  margin-top: 10px;
}
.card__description {
  color: var(--card-text);
  font-size: 0.75em;
  margin: 5px 0px;
  opacity: 0.7;
  transition: all 0.3s ease;
  text-align: left;
}

.robot{
  position: absolute;
  right: 10%;
  margin-right: 30px;
  margin-top: -450px;
}
.robot img{
  width: 250px;
  height: auto;
}
@media (766px <= width <= 960px){
  .robot{
    right: -10%;
  }
}
.icono-lista{
  content: url("imgs/Recurso\ 11.png");
  width: 15px;
  margin: -2px 8px -2px 0px;
}
.velocidad-caja span:nth-of-type(2){
  opacity: .5;
}
.velocidad{
  font-size: 2.8rem;
  font-family: 'inter', sans-serif;
  font-weight: 800;
  background: linear-gradient(90deg, var(--color1), var(--color3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card__footer {
  display: flex;
  justify-content: center;
  margin-top: auto;
}
.card__price {
  color: var(--card-text);
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
}
.card__price-p {
  color: var(--card-text);
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
}

/* Hover Effects */
.card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(124, 58, 237, 0.2);
}
.card:hover .card__shine {
  opacity: 1;
  animation: shine 3s infinite;
}
.card:hover .card__glow {
  opacity: 1;
}
.card:hover .card__badge {
  transform: scale(1);
  opacity: 1;
  z-index: 1;
}
.card:hover .card__title {
  color: var(--card-accent);
  transform: translateX(2px);
}
.card:hover .card__description {
  opacity: 1;
  transform: translateX(2px);
}
.card:hover .card__price {
  color: var(--card-accent);
  transform: translateX(2px);
}
.card:hover .card__price-p {
  color: var(--card-accent-p);
  transform: translateX(2px);
}
.card:hover .card__price-basico {
  color: #68b32e;
  transform: translateX(2px);
}
.card:hover .card__price-plus {
  color: #805399;
  transform: translateX(2px);
}
.card:hover .card__price-max {
  color: #d5c53d;
  transform: translateX(2px);
}
/* Active State */
.card:active {
  transform: translateY(-5px) scale(0.98);
}
/* Animations */
@keyframes shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
/*fin tarjetas animadas*/

/*---------CARTAS WIFI--------*/
.cartas-wifi{
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.cartas-wifi .card .card__description{
  font-size: clamp(.6rem, 1.5vw, 1rem);
}

/* BOTON CONTRATAR */
.btn-contratar {
  display: block;
  margin-top: 0px;
  padding: 5px 10px;
  text-align: center;
  background: #1aa8c8;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}
.btn-contratar:hover {
  background: #148aa4;
  transform: translateY(-2px);
}


.services {
  padding: 80px 60px;
  background: white;
}
.services h2{
  font-size: 2.5rem;
  text-align: center;
}
.services p{
  text-align: center;
}
.services h2:first-of-type{
  font-size: 1rem;
  color: var(--color3);
}
.services h2 span{
  background: linear-gradient(45deg, var(--color1), var(--color3));
  margin-left: 0.2em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.service {
  padding: 30px;
  border-radius: 16px;
  background: #f1f5f9;
}
.icon-servicios{
  width: 50px;
  margin-bottom: 15px;
}
h5{
  font-weight: 400;
  margin-top: 15px;
  line-height: 1.6;
}
 #cobertura{
  background-color: var(--colorfondo);
} 
.cobertura {
  background: var(--colorfondo);
  color: white;
  padding: 20px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cobertura-box h2{
  font-size: 2.9rem;
  line-height: 1.1;
  font-family: 'inter', sans-serif;
  font-weight: 400;
  width: 500px;
}
.cobertura-box h2 span{
  background: linear-gradient(45deg, var(--color1), var(--color3));
  margin-left: 0.1em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}
.cobertura-box input {
  padding: 14px;
  border-radius: 8px;
  border: none;
  margin-right: 10px;
}
.cobertura-box button {
  margin: 10px 0px;
  padding: 14px 20px;
  background: var(--color1);
  border: none;
  border-radius: 8px;
  color: white;
}
.zonaystats{
  display: flex;
  gap: 0px;
}
.zonas{
  margin-bottom: 5px;
}
.zona {
  display: flex;
  align-items: center;
  gap: 12px;
}
.zona img{
  width: 20px;
  content: url(imgs/Recurso\ 9.png);
}
.mapa {  
  width: 600px;
  margin-bottom: 20px;
  
}


.stats-caja{
  background-color: var(--colorfondo);
  padding: 10px 80px;
}
.stats {
  color: white;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 600px;
  margin: 80px 50px 0px 20px;
  font-size: 30px;
}
.stat-fondo{
  background-color: rgb(43, 41, 41, .5);
  border: rgb(72, 69, 69) solid;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-fondo span:nth-of-type(1){
  background: linear-gradient(45deg, var(--color1), var(--color3));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-weight: bold;
  font-size: 45px;
}
#contacto{
  background-color: var(--colorfondo);
  display: flex;
  justify-content: space-between;  
  padding: 50px;
}
.loguito-txt{
  width: 250px;
  padding-left: 20px;
}
.loguito-txt img{
  width: 80px;
  height: auto;
  border-radius: 5px;
}
.loguito-txt p{
  color: white;
  font-size: 15px;
  text-align: left;
}
.legales{
  display: flex;
  flex-direction: column;
}
.legales a{
  margin: 2px 0px;
}
.contactos{
  color: white;
  width: 280px;
  display: flex;
  flex-direction: column;
}
.contactos p{
  opacity: .5;
  margin: 2px 0px;
}
.flex-contactos{
  display: inline-flex;
  align-items: center;
  
}
.icono-contacto{
  width: 18px;
  height: auto;
  margin-right: 10px;
}
.resaltar{
  color: var(--color2);
  margin-bottom: 15px;
}
footer {
  padding: 20px;
  text-align: center;
  background: var(--colorfondo);
  color: #9ca3af;
  border-top: solid;
  border-color: #b7b7b7;
}
.menu-toggle{
  display: none;
}


/* ========================= */
/* ===== MOBILE STYLES ===== */
/* ========================= */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
@media (max-width: 768px) {

  /* ---------- NAVBAR ---------- */

  .navbar {
    flex-direction: row;
    padding: 12px 16px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .logo{
    max-width: 50px;
  }
  .logo img{
    order: 1;
    width: 100%;
  }

  .boton_login {
    order: 2;
    margin-left: auto;
    margin-right: 10%;
  }

  .boton_login button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  /* BOTÓN HAMBURGUESA */
  .menu-toggle {
    display: block;
    order: 3;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: black;
  }

  /* NAV OCULTO */
  .navbar nav {
    order: 4;
    position: absolute;
    top: 100%;
    right: 0;
    width: 70%;
    background: #e5e7eb;
    display: none;
    flex-direction: column;
    z-index: 9999;
    padding: 0;
  }

  /* NAV VISIBLE */
  .navbar nav.show {
    display: flex;
  }

  .navbar nav a {
    margin: 0;
    padding: 15px;
    text-align: center;
    color: black;
    border-bottom: 1px solid #d1d5db;
  }

  /* QUITAR EFECTOS */
  .hover-underline::after,
  .hover-underline::before {
    display: none;
  }

  /* ---------- HERO / PRINCIPAL ---------- */

  .principal {
    padding: 80px 20px;
    text-align: center;
  }

  .principal h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .principal p {
    font-size: 1rem;
  }

  .principal-buttons {
    display: flex;
    gap: 12px;
  }

  .principal-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
  }

  /* ---------- PLANES ---------- */

  #planes-todos{
    margin: 10px 0;
    display: grid;
    grid-template-columns: 50% 50%;
  }
  .plan-ideal{
    height: 150px;
    order: 0;
    font-size: clamp(.8rem, 5vw, 4rem);
  }
  .robot {
    position: initial;
    margin: 0;
    display: flex;
    justify-content: center;
    order: 1;
  }
  .robot img {
    width: 80%;
    height: auto;
  } 
  .planes {
    margin: 0;
    grid-column: 1/3;
    order: 2;
    justify-content: center;
  }
  .cartas-planes {
    margin: 3% 0;
    width: 100%; 
    max-width: 500px;
    gap: 1%;  
  }
  .card{
    width: 45%;
    height: auto;
    margin: 2%;
    display: flex;
    align-content: center;
  }
  .card__image{
    display: flex;
  }
  .card__content{
    padding: 10px 10px;
  }
  .cartas-wifi{
    gap: 0px;
  }
  .cartas-wifi .card .card__title{
    font-size: clamp(1rem, 6vw, 2rem);
  }
  .cartas-wifi .velocidad{
    font-size: clamp(1rem, 9vw, 3rem)
  }
  .cartas-wifi .icono-lista{
    width: 8%;
    min-width: 10px;
    margin: 0;
    margin-right: 2px;
  }
  /* ---------- SERVICIOS ---------- */

  .services { 
    padding: 60px 20px;
  }

  .services h2 {
    font-size: 1rem;
  }

  .service-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 2%;
  }
  .service{
    padding: 10px;
    height: auto;
  }
  .icon-servicios{
    width: 30%;
  }
  .service h3{
    font-size: 1rem;
  }
  .service h5{
    font-size: 0.8rem;
  }

  /* ---------- COBERTURA + STATS ---------- */

  .cobertura {
    grid-template-columns: 1fr;
    padding: 20px 20px;
  }
  .cobertura-box{
  }
  .cobertura-box h2 {
    font-size: 2rem;
    width: 100%;
  }
  .mapa{    
    width: 100%;
    height: 300px;
  }
  #map {
    transform: none !important;
    height: 300px;
  }
  .zonaystats {
    flex-direction: column;
  }
  .stats-caja{    
    padding: 2%;
  }
  .stats {
    display: grid;
    grid-template-columns: 50% 50%;
    width: auto;
    padding: 0;
    margin: 0;
    gap: 0;
  }
  .stat-fondo{
    margin: 5px 10px;
    height: auto;
  }
  .stat-fondo span:nth-of-type(2){
    font-size: 1rem;
  }
  
  /* ---------- CONTACTO ---------- */
  #contacto{
    display: grid;
    padding: 2% 5%;
  }
  .loguito-txt{
    padding: 0;
    width: 100%;
    order: 0;
  }
  .legales{
    order: 2;
  }
  .contactos{
    order: 1;    
    margin: 15px 0;
  }
  /* ---------- FOOTER ---------- */

  footer {
    font-size: 0.85rem;
    padding: 15px;
  }
}
/* MAPA */
.mapa {
  width: 100%;
}

#map {
  width: 100%;
  height: 250px;
  min-height: 250px;
}

/* Mobile */
@media (max-width: 768px) {
  #map {
    height: 250px;
  }
}
