/* ===== INTRO ===== */
.vista-container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.vista-container.animar {
  opacity: 1;
  transform: translateY(0);
}

.servicios-intro {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  color: #fff;
}

.servicios-intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #4da3ff;
}

/* ===== SERVICIOS LISTA ===== */
.servicios-lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.servicio {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  color: #fff;
  transition: all 0.3s ease;
}

.servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 0.08);
}

.servicio h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #4da3ff;
}

.servicio ul {
  list-style: none;
  padding: 0;
}

.servicio ul li {
  margin-bottom: 0.5rem;
}

/* Responsive servicios-lista */
@media (max-width: 1024px) {
  .servicios-lista {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .servicios-lista {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .servicio {
    padding: 1.2rem;
    text-align: left;
  }

  .servicio h3 {
    font-size: 1.2rem;
    text-align: center;
  }
}

/* ===== PLANES Y PRECIOS ===== */
.servicios-planes {
  text-align: center;
  margin: 3rem auto;
  max-width: 1000px;
  padding: 1rem;
  color: #fff;
}

.servicios-planes h2 {
  color: #4da3ff;
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* Responsive planes-grid */
@media (max-width: 1024px) {
  .planes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .planes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.plan {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  text-align: center;
  color: #fff;
  transition: all 0.3s ease;
}

.plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 0.08);
}

.plan.destacado {
  background: #0078ff;
  color: #fff;
  transform: scale(1.05);
}

.plan.destacado:hover {
  background: #3395ff;
  transform: scale(1.08);
}

.plan h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.plan .precio {
  font-size: 2rem;
  margin: 1rem 0;
  font-weight: bold;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.plan ul li {
  margin-bottom: 0.5rem;
}

.plan button {
  background: #0078ff;
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan button:hover {
  background: #3395ff;
}

.plan.destacado button {
  background: #fff;
  color: #0078ff;
}

.plan.destacado button:hover {
  background: #e6e6e6;
}

/* ===== MODAL ===== */
.modal {
  display: flex;
  justify-content: center;
  align-items: center; /* Centrado vertical y horizontal */
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9999; /* Siempre por encima */
}

.modal.visible {
  opacity: 1;
  visibility: visible;
}

/* Contenedor principal del contenido */
.modal-contenido {
  background: linear-gradient(135deg, #1f1f29, #2b2b38);
  padding: 2.5rem;
  border-radius: 18px;
  max-width: 520px;
  width: 90%;
  color: #fff;
  transform: scale(0.95);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4),
              0 0 0 1px rgba(255,255,255,0.05);
  text-align: center;
  position: relative;
}

.modal.visible .modal-contenido {
  transform: scale(1);
  opacity: 1;
  animation: fadeInScale 0.45s ease forwards;
}

/* Botón de cerrar */
.cerrar-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.cerrar-modal:hover {
  color: #ff5c5c;
  transform: scale(1.15);
}

/* Títulos */
.modal-contenido h2 {
  font-size: 1.8rem;
  color: #4da3ff;
  margin-bottom: 1rem;
}

/* Texto */
.modal-contenido p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 1rem;
}

/* Inputs y textarea */
#form-contacto input,
#form-contacto textarea {
  width: 100%;
  padding: 0.9rem;
  margin: 0.6rem 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1rem;
  transition: border 0.3s ease, background 0.3s ease;
}
.modal textarea{
  resize: none;
}

#form-contacto input:focus,
#form-contacto textarea:focus {
  outline: none;
  border: 1px solid #4da3ff;
  background: rgba(255,255,255,0.08);
}

/* Botón de enviar */
#form-contacto button[type="submit"] {
  background: linear-gradient(135deg, #0078ff, #4da3ff);
  color: #fff;
  border: none;
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.2s ease;
  margin-top: 1rem;
  width: 100%;
}

#form-contacto button[type="submit"]:hover {
  background: linear-gradient(135deg, #4da3ff, #0078ff);
  transform: translateY(-2px);
}

/* Mensaje de éxito */
.mensaje-exito {
  display: none;
  color: #4ade80;
  font-weight: bold;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.mensaje-exito.visible {
  display: block;
}

/* Animación */
@keyframes fadeInScale {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {

  .modal-contenido {
    padding: 1.5rem;
    max-width: 95%;
    border-radius: 12px;
  }

  .modal-contenido h2 {
    font-size: 1.4rem;
  }

  #form-contacto input,
  #form-contacto textarea {
    font-size: 0.9rem;
    padding: 0.7rem;
  }

  #form-contacto button[type="submit"] {
    font-size: 0.95rem;
    padding: 0.8rem;
  }

  .cerrar-modal {
    font-size: 1.6rem;
  }
}

/* ===== COMPARADOR DE PLANES ===== */
.comparador-planes {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 1rem;
  text-align: center;
  color: #fff;
}

.comparador-planes h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #4da3ff;
}

.comparador-planes table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.comparador-planes th {
  background: #0078ff;
  color: #fff;
  padding: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.comparador-planes th:first-child {
  background: #1b1b1b;
  text-align: left;
  font-size: 1.1rem;
}

.comparador-planes td {
  padding: 0.8rem;
  border: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}

.comparador-planes td:first-child {
  text-align: left;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
}

/* Iconos de colores */
.comparador-planes .check {
  color: #4ade80;
}

.comparador-planes .cross {
  color: #ff5c5c;
}

/* Tarjetas responsive */
.comparador-planes .cards-responsive {
  display: none;
}

@media (max-width: 768px) {

  .comparador-planes table {
    display: none;
  }

  .comparador-planes .cards-responsive {
    display: grid;
    gap: 1.5rem;
  }

  .comparador-planes .card-plan {
    background: rgba(255,255,255,0.05);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: left;
  }

  .comparador-planes .card-plan h4 {
    color: #4da3ff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .comparador-planes .card-plan ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .comparador-planes .card-plan ul li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .comparador-planes .card-plan ul li .check {
    color: #4ade80;
  }

  .comparador-planes .card-plan ul li .cross {
    color: #ff5c5c;
  }
}
