@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@900&family=Roboto:wght@200&display=swap');

body {
margin: 0;
font-family: 'Roboto', sans-serif;
}

 main {
    margin-top:90px; /* espacio para compensar header fijo */
  }
/* Header base (Mobile por defecto) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #DA291C;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fila Canal */
.canal {
  background-color: #272727;
  width: 80%;
  height: 60px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  display: none; /* por defecto, se muestra solo en mobile con media query */
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  position: relative;
  top: -5px;
}

/* Fila Logo */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  width: 100%;
  background-color: #DA291C;
}

.logo img {
  max-height: 60px;
  width: auto;
}

/* Fila Navegación */
nav {
  background-color: #B52217;
  display: flex;
  justify-content: center;
  align-items: center;
  gap:10;
  padding: 10px 0;
  width: 100%;
  margin-top: 10px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  padding:5px 15px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
}

nav a:hover {
  opacity: 0.8;

}


.principal, .principal-porta {
width: 100%;
height: 75vh;

background-color: #e2e2e3;
display: flex;
position: relative;
margin: 0;
padding: 0;
padding-top: 40px;
padding-bottom: 20px;
justify-content: center; /* centra horizontal */

}


.principal {
  background: url('fondoimg.jpg')  center/cover no-repeat;
}
.principal-porta {
background-position: center 100px; /* mueve el fondo 50px hacia arriba */
background: url('fondoporta.jpg')  center/cover no-repeat;


}

.overlay {

  display: flex;
  width: 100%;
  max-width: 1200px;
  gap: 2rem;
  background: rgba(255,255,255,0.05); /* ligero overlay opcional */
  color: #fff;

}

.planxdefecto, .contactoprincipal {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.planxdefecto {

    justify-content: right;
    text-align: right;
    padding-right:130px;
    padding-top:80px;

  color: #272727;
  font-family: 'Roboto', sans-serif;
    

 }

 .frase-desktop, .frase-desktop-porta {
    display: block;
    color: #b01010;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 3.4rem;
    line-height: 0.9;
    text-align: right;
    letter-spacing: -1.2px;    
  }

  .frase-desktop-porta {
    font-size: 2.8rem;
     line-height: 1.1;
     color: #fff;
  }


.planxdefecto h1, .contactoprincipal h2 {
  margin: 0 0 1rem;
}

.planxdefecto p {
  margin-bottom: 1.5rem;
}

.titulo-plan , .titulo-plan-porta {
  font-family: 'Roboto', sans-serif;
  font-weight: 300; /* ultra delgada para 'plan' */
  font-size: 2.8rem;
  color: #272727;
  letter-spacing: -2px;
  margin-bottom: 0px; /* reduce el espacio entre el título y el recuadro rojo */
  margin-top:20px;

}
.titulo-plan-porta {
    color: #fff;
} 


.titulo-plan strong , .titulo-plan-porta strong{
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: -3px;
}

.precio-contenedor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #DA291C;
  color: #fff;
  border-radius: 20px;
  width: 300px;
  height: 120px;
  margin: 10px auto;
  margin-left: auto; /* empuja el bloque hacia la derecha */
  margin-right: 0;
}

.signo {
  position: absolute;
  left: 55px;
  top: 30%;
  font-size: 1.5rem;
  color: #fff;
}

.precio {
  font-size: 3.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -3px
}

.mes {
  position: absolute;
  top: 28px;
  right: 25px;
  font-size: 1rem;
  color: #fff;
}

.instalacion {
  font-size: 0.9rem;
  margin-top: 5px;
  color: #fff;
}


.boxformulario {
  background-color: #fff;
  border-radius: 20px;
  width: 380px;
  max-width: 380px; /* mismo ancho visual que el recuadro rojo */
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  
}

.boxformulario h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  color: #888;  
  margin-bottom: 0px;
    text-align: left;
}

.texto-delgado {
   color: #222;  
   font-weight: 300;
}

.texto-grueso {
  color: #222; 
  font-weight: 800;
}

.subtexto {
  font-family: 'Roboto', sans-serif;
  font-size: 1.0rem;
  color: #818181;
  margin-bottom: 25px;
}

.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.form-contacto input {
  font-family: 'Roboto', sans-serif;
  font-size: 1.0rem;
  padding: 10px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.form-contacto input::placeholder {
  color: #a0a0a0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  color: #272727;
  border-radius: 10px;
  margin-top: 5px;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  accent-color: #DA291C; /* color del check al seleccionar */
}

.checkbox-label a {
  color: #1f7aa9;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.btn-enviar {
  margin-top: 15px;
  background-color: #ee122c;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  padding: 20px 25px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-align: center;
  align-self: center; /* centra el botón dentro del form */
  transition: background-color 0.3s ease;
}

.btn-enviar:hover {
  background-color: #DA291C;
}

.planes { 
    width: 60%;
    margin: 0 auto; 
    text-align: center; 
    padding: 0px 0;
    padding-bottom: 20px;


 }

.planes h2 { 
    font-size: 2rem;
    color: #272727; 
    font-weight: 500;
    letter-spacing: -2px;
}
.planes h2 span { 
    color: #DA291C;
}
.subtitulo { 
  color: #818181;
  margin: 10px 0 40px;
  font-size: 1rem;
  font-weight: 400;
}

/* Carrusel: el wrapper es el contenedor scrollable */
.carousel-wrapper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;

justify-content: flex-start;
    overflow-x: auto;
    gap: 15px;
    scroll-snap-type: x mandatory;
}


.carousel-track {
  display: flex;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* Tarjetas */
.card-plan {
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 20px;
  flex: 0 0 30%;
  padding: 10px 10px;
  box-sizing: border-box;
  text-align: center;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
     flex: 0 0 32%; /* ancho de tarjeta móvil */
    scroll-snap-align: start;
}


.card-plan h3 { font-size: 1.5rem; color: #272727; margin-bottom: 10px; }
.card-plan p { font-size: 1.2rem; color: #DA291C; }

/* Indicadores */
.carousel-indicators { display: none; justify-content: center; margin-top: 20px; gap: 8px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ccc;
  transition: background 0.25s ease, transform 0.25s ease;
}

.dot.active { 
  background: #DA291C;
  transform: scale(1.3);
}

.card-plan .titulo,  .tarjeta-port .titulo {
  color: #444;        /* Gris suave */
  font-weight: 300;      /* Light */
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;     /* Ajustable según diseño */
  margin-bottom: 5px;   /* Espacio debajo del título */
  letter-spacing: -1px;
}

.card-plan .velocidad , .tarjeta-port .velocidad {
  color: #DA291C;            /* Rojo principal */
  font-weight: 600;          /* Negrita fuerte */
  font-family: 'Roboto', sans-serif;
  font-size: 3rem;         /* Tamaño grande */
  letter-spacing: -3px;    /* Espaciado más ajustado */
  margin: 0px 0;             /* Espaciado vertical controlado */
   margin-bottom: -8px; 
}

.card-plan .linea {
  color: #a0cdcc;             /* Celeste verdoso */
  font-weight: 500;           /* Regular */
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;          /* Tamaño medio */
  margin: 0px 0;              /* Pequeño margen vertical */
  letter-spacing: -1px;
  margin-bottom:15px; 
}

.card-plan .nota, .tarjeta-port .nota{
  color: #bcbcbc;           /* Gris oscuro */
  font-weight: 400;         /* Negrita */
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;        /* Letra pequeña */
  margin: 0px 0;            /* Espaciado vertical mínimo */
  margin-top:15px;
   margin-bottom:15px; 
}

.tarjeta-port .nota{
    color: #444;
     font-size: 0.9rem;        /* Letra pequeña */ 

}
.card-plan .precio , .tarjeta-port .precio {
  display: flex;               /* permite alinear importe y periodo */
  align-items: center;         /* centra verticalmente importe y periodo */
  justify-content: center;     /* centra horizontalmente */
  gap: 4px;                    /* espacio pequeño entre importe y periodo */
  font-family: 'Roboto', sans-serif;
  margin: 0px 0;
}

.card-plan .precio .importe , 
.tarjeta-port .precio .importe {
  color: #0097A9;              /* azul principal */
  font-weight: 700;             /* letra ancha */
  font-size: 2rem;              /* tamaño destacado */
  letter-spacing: -1px;       /* espaciado más ajustado */
}

.card-plan .precio .periodo,  .tarjeta-port .precio .periodo  {
  color: #212121;               /* gris */
  font-weight: 400;             /* letra delgada */
  font-size: 1rem;              /* más pequeña */
  letter-spacing: 1px;       /* espaciado más ajustado */

}

.tarjeta-port .lineawsp {
  color: #a0cdcc;             /* Celeste verdoso */
  font-weight: 400;           /* Regular */
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;          /* Tamaño medio */
  margin: 0px 0;              /* Pequeño margen vertical */
  letter-spacing: -1px;
  margin-bottom:15px; 

}
.card-plan .gratis {
  background-color: #ffed8b;   /* fondo amarillo suave */
  color: #b01010;              /* texto rojo */
  font-weight: 700;            /* letra gruesa */
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;             /* tamaño medio */
  padding: 10px 0px;           /* espacio interno */
  border-radius: 8px;          /* bordes redondeados */
  display: inline-block;       /* para que el fondo se ajuste al texto */
  margin: 6px 0;               /* separación vertical */
  text-align: center;
  width:100%;
}

.card-plan .tv {
  display: flex;
  justify-content: space-between;  /* espacio entre columnas */
  align-items: center;
  width: 100%;                   /* ocupa todo el ancho de la tarjeta */
  padding: 10px 0px;           /* espacio interno */
  margin: 6px 0;
  border-radius: 10px;
  font-family: 'Roboto', sans-serif;
}

.card-plan .tv-left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
   color: #ff8300;
}

.card-plan .tv-left .tv-text {
  font-weight: 500;
  font-size: 1rem;
  color: #ff8300;   /* Celeste verdoso */
}

.card-plan .tv-right {
  font-weight: 700;
  font-size: 1rem;
    padding-right: 10px;
}

/* Estilo del switch */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: .2s;
  border-radius: 18px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #b01010;
}

input:checked + .slider:before {
  transform: translateX(16px);
}
.card-plan .plataformas {
  display: flex;
  align-items: center;
  gap: 10px;                   /* espacio entre imágenes */
  padding-left:10px;
  margin: 6px 0;
  flex-wrap: wrap;              /* permite ajustar en pantallas pequeñas */
  justify-content: center;     /* centra horizontalmente */
}

.card-plan .plataforma-icon {
  width: 40px;                 /* tamaño de las imágenes */
  height: auto;
}

.card-plan .plataformas-text {
  font-size: 0.85rem;           /* letra pequeña */
  color: #818181;               /* gris suave */
  margin-left: 0px;            /* separación del último icono */
  padding-right:10px;
}

.card-plan .btn-loquiero , 
.tarjeta-port .btn-loquiero {
  background-color: #DA291C;       /* mismo rojo que el otro botón */
  color: white;                     /* texto blanco */
  width:90%;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;               /* mismo borde redondeado */
  cursor: pointer;
  display: block;
  margin: 12px auto 0 auto;         /* centrado horizontalmente */
  text-align: center;
  transition: background 0.2s;
  margin-bottom: 25px;
  margin-top:30px;
 
}

.card-plan .btn-loquiero:hover,  .tarjeta-port  .btn-loquiero:hover {
  background-color: #9a0d0d;        /* efecto hover más oscuro */
}


/* --- Modal --- */
.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 900;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px 30px;
  border-radius: 20px;
  width: 80%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: flex;

}

.close {
  color: #aaa;
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Reutilizamos el estilo del boxformulario */
.modal .boxformulario input[type="text"],
.modal .boxformulario input[type="tel"],
.modal .boxformulario input[type="checkbox"] {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d5d5d5;
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
}

.modal .btn-enviar {
  margin: auto;
  background-color: #ee122c;
  color: #fff;
  font-weight: 400;
  border: none;
  border-radius: 10px;
  padding: 12px 0;
  width: 100%;
  cursor: pointer;
  margin-top: 10px;
}

.modal .boxformulario form {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Asegura estructura compacta y sin separación extra */
.check-container {
  display: inline-flex;      /* inline para no ocupar todo el ancho */
  align-items: center;       /* centra verticalmente */
  gap: 6px;                  /* espacio pequeño entre checkbox y texto */
  font-size: 0.85rem;
  color: #272727;
  white-space: nowrap;       /* evita saltos de línea */
  padding: 0;                /* elimina padding que provoque separación */
  margin: 8px 0 0 0;         /* ajuste opcional */
    /* evita que el label se estire a 100% */
  vertical-align: middle;

  width:20px;
}

/* Forzar que el input no tenga margenes que lo separen del texto */
.check-container input[type="checkbox"] {
  margin: 0;                 /* quita márgenes por defecto */
  width: 16px;
  height: 16px;
  flex-shrink: 0;            /* no se achique */
  accent-color: #b01010;
  cursor: pointer;
}

/* Asegura que el texto quede pegado al checkbox */
.check-container span,
.check-container > *:not(input) {
  display: inline-block;
  line-height: 1;
  margin: 0;
}

/* Si el texto contiene un enlace, que no empuje el layout */
.check-container a {
  color: #1f7aa9;
  text-decoration: none;
  margin-left: 4px;
}
.check-container a:hover { text-decoration: underline; }


/* ==== SECCIÓN CONVERGENTE ==== */
.convergente {
  width: 100%;
  background-color: #f5f5f5; /* gris muy suave */
  padding: 60px 0;
}

.convergente-container {
  width: 60%;
  margin: 0 auto;
}

.convergente-box {
  background-color: #b01010; /* recuadro rojo */
  border-radius: 20px;
  padding: 40px;
  text-align: left;
  color: white;
}

.convergente-box h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.convergente-box .subtitulo {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 25px;
  color: #fff;
}

.convergente-box .btn-loquiero {
  background-color: white;
  color: #b01010;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 400;
  cursor: pointer;
    font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.convergente-box .btn-loquiero:hover {
  background-color: #f2f2f2;
}


.modal-privacidad {
  display: none;
  
  position: fixed;
  z-index: 910;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);

  /* Centrado del contenido */

  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-privacidad-content {
  background-color: white;
  border-radius: 20px;
  width: 95%;
    margin: 5% auto;
  max-width: 600px;
  max-height: 70vh; /* altura máxima del modal */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* evita scroll en header/footer */
  position: relative;
  box-sizing: border-box;
  padding: 20px;
}

.modal-privacidad-header h2 {
  text-align: center;
  margin-bottom: 15px;
}

.modal-privacidad-body {
  overflow-y: auto; /* scroll solo aquí */
  flex: 1; /* ocupa todo el espacio disponible */
  padding-right: 10px; /* espacio para scrollbar */
}

.modal-privacidad-body p {
  margin-bottom: 15px;
  line-height: 1.5;
  color: #555;
  font-size: 0.95rem;
}

.modal-privacidad-footer {
  margin-top: 15px;
  text-align: center;
}

.close-privacidad {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 25px;
  cursor: pointer;
}

.btn-privacidad {
  background-color: #b01010;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-privacidad:hover {
  background-color: #a50a1c;
}
footer {
  background-color: #333333; /* gris oscuro */
  padding: 20px 0;
  color: white;
}

.footer-container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  height: 50px;
}

.footer-link a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

/* Por defecto ocultamos el salto de línea */
.mobile-br {
  display: none;
}




/* === SECCIÓN PLANES PORTABILIDAD === */
.planes-portabilidad {
  width: 80%;
  margin: 20px auto;
  text-align: center;
    justify-content: center;
  font-family: 'Roboto', sans-serif;

}

.planes-portabilidad__header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #da291c;
  margin-bottom: 10px;
}

.planes-portabilidad__header p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.planes-portabilidad__botones {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-portabilidad-opcion {
  background: #fff;
  border: 2px solid #da291c;
  color: #da291c;
  border-radius: 25px;
  padding: 10px 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-portabilidad-opcion.active,
.btn-portabilidad-opcion:hover {
  background: #da291c;
  color: #fff;
}

/* CARRUSEL */
.planes-portabilidad__carrusel {
  position: relative;
  overflow: hidden;
  width: 100%;
    text-align: center;
      justify-content: center;
      margin: 0px;
      padding:0px;
}

.carrusel-wrapper-porta {
  width: 99%;
  overflow: hidden;
  justify-content: flex-start;
  text-align: center;
  
    scroll-snap-type: x mandatory;
      padding:0px;

margin:0;
     

}

.carrusel-track {
  display: flex;
  transition: transform 0.5s ease;
        margin: 0px;
      padding:0px;
}

.tarjeta-port {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 15px;
  flex: 0 0 calc(30% - 30px);
  margin: 10px;
  margin-right: 20px;
  margin-left: 0px;
  padding: 25px;
  text-align: center;


}

.tarjeta-port h3 {
  color: #da291c;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.tarjeta-port p {
  color: #444;
  font-size: 0.95rem;
}

/* Indicadores */
.carrusel-indicadores {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
}

.carrusel-indicadores .indicador {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}

.carrusel-indicadores .indicador.active {
  background: #da291c;
}

.botones-port {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 20px;
}
/* === ESTILO BASE DE LOS BOTONES === */
#btn-movistar,
#btn-personal {
  background-color: #ffffff;          /* Fondo blanco por defecto */
  color: #b01010;                     /* Texto rojo */
  border: 1px solid #b01010;          /* Borde rojo */
  padding: 10px 25px;
  border-radius: 12px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* === ESTILO DEL BOTÓN ACTIVO === */
#btn-movistar.active,
#btn-personal.active {
  background-color: #b01010;          /* Fondo rojo */
  color: #ffffff;                     /* Texto blanco */
  border: 2px solid #b01010;          /* Mantiene el borde rojo */
}

/* === Efecto hover === */
#btn-movistar:hover,
#btn-personal:hover {
  opacity: 0.9;
}



/* === NUEVO BLOQUE DE BENEFICIOS === */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 15px;
  margin-top: 0px;
  width:80%;
  margin: 0px auto;
}

.beneficio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.beneficio-item i {
  font-size: 0.8rem;
  color: #818181;
  flex-shrink: 0;
}

.beneficio-texto {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
    font-size: 0.5rem;
}

.beneficio-titulo {
 font-size: 0.7rem !important;
  font-weight: 400;
  color: #818181;
  margin: 0;
      font-size: 0.5rem;
}

.beneficio-sub {
  font-size: 0.7rem !important;
  color: #818181;
  margin: 0;
    font-weight: 300;
}

.beneficio-item img.beneficio-img {
  width: 20px; /* Ajustá según necesites */
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.recuadro-beneficio {
  display: flex;
  align-items: center;      /* centra verticalmente ícono y texto */
  justify-content: center;  /* centra todo horizontalmente en el recuadro */
  gap: 8px;                 /* espacio entre ícono y texto */
  background-color: #f2f2f2; /* gris claro */
  padding: 20px 15px;
  border-radius: 15px;
  margin-top: 15px;
}

.recuadro-beneficio i {
  font-size: 1rem; /* tamaño del ícono */
  color: #b01010;  /* mismo color que los beneficios */
  flex-shrink: 0;  /* evita que se achique */
}

.recuadro-beneficio p {
  font-size: 0.7rem;
  margin: 0;
  color: #272727;
  line-height: 1.2;
}

/********************* mobile *****/



@media (max-width: 768px) {

  .beneficios-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    width:100%;
    margin: 0px auto;

  }

  .beneficio-titulo {
    font-size: 0.85rem;
  }

  .beneficio-sub {
    font-size: 0.7rem;
  }
  
    .tarjeta-port {
    flex: 0 0 80%;

    margin: 10px 10px;
  }


  .tarjeta-port .lineawsp {
      font-weight: 800;           /* Regular */
}
  .planes-portabilidad__botones {
    flex-direction: column;
    gap: 15px;
  }

  .btn-portabilidad-opcion {
  background: #fff;
  border: 2px solid #da291c;
  color: #da291c;
  border-radius: 25px;
  padding: 10px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 400;

  transition: all 0.3s ease;
 }

 .botones-port {
    flex-direction: row;        /* Mantener en la misma línea */
    justify-content: space-around;

  }

  #btn-personal,
  #btn-movistar {
    flex: 1;                    /* Que ambos ocupen el mismo ancho */
    text-align: center;
    max-width: 48%;             /* Un poco de espacio entre ellos */
    font-size: 1.0rem;
    font-weight: 400;
  }

  .canal {
    display:inline-flex;
  }
  .canal2 {
      display:none;
  }
  
 main {
    margin-top:170px; /* espacio para compensar header fijo */
  }

  .principal,   .principal-porta  {
    background-position: center -100px; /* mueve el fondo 50px hacia arriba */
    background-color: #e2e2e3;
    padding-top: 0px;
    padding-bottom: 35px;
    height: 100vh;
  }


 .contacto-principal {
  display: flex;
  justify-content: center;   /* centra horizontalmente */
  width: 100%;
  height: 100%;

}

  .overlay {
    flex-direction: column;
    gap: 0.5rem;

  }

  .planxdefecto {   
    justify-content: flex-start; /* evita centrado vertical */
    padding-top: 10px; /* pequeño espacio visual desde el borde */
    padding-right:0px;
          text-align: center;


  }

.precio-contenedor {
  margin:10px auto; /* empuja el bloque hacia la derecha */
  
}

  .frase-desktop,  .frase-desktop-porta {
     display: none;

  }

  .titulo-plan , .titulo-plan-porta {
    margin-bottom: 0px; /* reduce el espacio entre el título y el recuadro rojo */
      margin-top:50px;
  }

  .boxformulario {
     width: 250px;
     max-width: 250px; /* mismo ancho visual que el recuadro rojo */
     padding: 25px;
  
  }

  .planes { 
    width: 75%;

  }

.carousel-container {
    overflow-x: auto;               /* activa desplazamiento horizontal */
    scroll-snap-type: x mandatory;  /* alinea las tarjetas al deslizar */
    -webkit-overflow-scrolling: touch;
  }

  .carousel-track {
    display: flex;
    flex-wrap: nowrap;              /* evita que se apilen */
    gap: 10px;
  }

  .card-plan { 
    flex: 0 0 100%;
  }
  
  .carousel-indicators { 
      display: flex;
  }

  .modal-content {
     margin: 15% auto;
   }

  .convergente-container {
    width: 80%;
    margin: 0 auto;
  }

  .mobile-br {
    display: inline;
  }

}


/* DESKTOP: layout horizontal */
@media (min-width: 769px) {
  

   header {
    display: grid;
    grid-template-columns: auto 1fr auto; /* izquierda, centro, derecha */
    align-items: center; /* centrar verticalmente */
    height: 80px;
    padding: 10px 50px;
    background-color: #DA291C;
    gap: 10px; /* opcional, espacio entre columnas */
  }
  .canal {
        display: none;
  }
  .canal2 {
    display: flex;
    justify-content: flex-start; /* contenido a la izquierda de su columna */
    align-items: center;
    text-align: center;
    height: 60px;
    background-color: #272727;
    padding:0px;
    padding-left:20px;
    border-radius: 20px; 
    color: #fff;
    font-weight: 500;
    margin:auto;
    margin-right: 70px;
    width:250px;
  }

  .logo {
    display: flex;
    justify-content: left; /* centrado dentro de su columna */
    align-items: center;
    width:200px;
  }

  nav {
    display: flex;
    padding-right: 0px;
    gap: 40px;
    background-color: #DA291C;
    font-size: 2rem;

  }

  nav a {

       font-weight: 400;
       position: relative;
       color: #ffffff;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 1.2rem; 
      transition: color 0.3s ease;
      font-family: 'Roboto', sans-serif;
  }

  nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -4px;
  left: 50%;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  width: 100%;

}

}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  backdrop-filter: blur(3px);
}

.modal-content-info {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 30px 40px;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  color: #333;
  max-width: 280px;
}

.modal-content.success {
  border-top: 5px solid #00c851;
}
.modal-content.error {
  border-top: 5px solid #ff4444;
}

