/* estilos_inicio.css */

/* ======== RESET BÁSICO ======== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: "Helvetica Neue", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
  background-color: #ffffff; 
  color: #333333;
  line-height: 1.6;
}

/* Contenedor base */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ======== ENCABEZADO / NAVBAR ======== */
.header {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand .logo-img {
  height: 90px;
  transition: transform 0.2s ease;
}
.navbar-brand .logo-img:hover {
  transform: scale(1.05);
}
.navbar-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111;
}
.nav-menu {
  list-style: none; 
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
}
.nav-menu li {
  list-style: none;
}
.nav-menu a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
}
.nav-menu a:hover {
  color: #0071e3;
}
.nav-menu a.btn-primary {
  background-color: #0071e3; /* azul */
  color: #fff;               /* texto blanco */
  padding: 0.6rem 1.2rem;    /* más espacio vertical y horizontal */
  border-radius: 4px;        /* esquinas suaves */
  font-weight: 600;          /* negrita */
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.nav-menu a.btn-primary:hover {
  background-color: #005BB5; /* un azul más oscuro en hover */
  transform: scale(1.03);
}

/* ======== BOTONES GENERALES ======== */
.btn {
  display: inline-block;
  background-color: #0071e3;
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px; 
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}
.btn.btn-primary {
  background-color: #0071e3; 
}
.btn.btn-secondary {
  background-color: #fff;
  color: #0071e3;
  border: 1px solid #0071e3;
}
.btn:hover {
  transform: scale(1.02);
  background-color: #005BB5;
}
.btn-secondary:hover {
  color: #005BB5;
  border-color: #005BB5;
}
.btn-submit {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 20px auto;
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* ======== SECCIONES (beneficios, planes, etc.) ======== */
section {
  padding: 60px 20px;
  background-color: #fff; 
}
section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #111;
  font-weight: 600;
}
section p {
  color: #555;
  line-height: 1.5;
}

/* Secciones grises */
.beneficios-propietario,
.beneficios-cliente,
.faq,
.testimonios {
  background-color: #fafafa;
}
.demo-vivo {
  background-color: #fefefe;
}

.intro-section {
  background-color: #f9f9f9;  /* un gris claro suave */
  padding: 40px 20px;        /* espacio vertical */
  text-align: center;        /* centrado de contenido */
}
.intro-container {
  max-width: 800px;          /* no exceder mucho el ancho */
  margin: 0 auto;
}
.intro-title {
  font-size: 2rem;
  color: #111;
  margin-bottom: 20px;
  font-weight: 700;
}
.intro-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

/* ======== BENEFITS GRID ======== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  justify-items: stretch; /* <-- para que las tarjetas se expandan */
}
.benefit {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  width: 100%; /* que ocupe todo el ancho de la celda */
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.benefit i {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #0071e3; 
}
.benefit h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #111;
}
.benefit p {
  font-size: 1rem;
  color: #555;
}

/* ======== TESTIMONIOS GRID ======== */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  justify-items: stretch;
}
.testimonio {
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}
.testimonio:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.testimonio p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #333;
}
.testimonio strong {
  color: #666;
}

/* ======== PLANES DE SUSCRIPCIÓN ======== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* Tarjeta de Plan */
.plan-card {
  position: relative;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 280px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s, box-shadow 0.3s;
}
.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.plan-card h3 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.5em;
}
.plan-price {
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 15px;
  color: #28a745; /* Verde para precios */
}
.plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}
.plan-features li {
  margin-bottom: 10px;
  text-align: left;
  font-size: 0.95em;
}
.plan-features li i {
  margin-right: 8px;
  color: #007bff;
}
/* Nota del Plan */
.plan-note {
  font-size: 0.9em;
  text-align: center;
  color: #6c757d;
  margin-bottom: 15px;
}
/* Opciones de Suscripción */
.subscription-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn {
  display: inline-block;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s;
}
.btn-primary {
  background-color: #007bff;
}
.btn-primary:hover {
  background-color: #0069d9;
}
.btn-secondary {
  background-color: #6c757d;
}
.btn-secondary:hover {
  background-color: #5a6268;
}
/* Badge para Plan Popular */
.badge-popular {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #007bff;
  color: #fff;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.8em;
}

/* ======== TABLA DE COMPARACIÓN ======== */
.comparison-table {
  margin-top: 40px;
}
/* Tabla para Desktop */
.desktop-table {
  display: block;
}
.table-container table {
  width: 100%;
  border-collapse: collapse;
}
.table-container th, .table-container td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
  font-size: 0.95em;
}
.table-container th {
  background-color: #f2f2f2;
  font-weight: bold;
}
.table-container tbody tr:nth-of-type(odd) {
  background-color: #ffffff;
}
.table-container tbody tr:nth-of-type(even) {
  background-color: #f9f9f9;
}
.table-container tbody tr:hover {
  background-color: #f1f1f1;
}
.table-container td i {
  margin-right: 8px;
  color: #007bff;
}
/* Enlace para abrir el modal en móviles */
.mobile-modal-link {
  display: none;
  text-align: center;
  margin-top: 20px;
}
.mobile-modal-link .btn {
  padding: 10px 20px;
}


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

.close-button:hover,
.close-button:focus {
  color: #000;
  text-decoration: none;
}


.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.confirmation-message {
  color: #28a745;
  font-weight: bold;
  margin-top: 20px;
}

/* Modal Tabla */
#comparisonModal table {
  width: 100%;
  border-collapse: collapse;
}
#comparisonModal th, #comparisonModal td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
  font-size: 0.95em;
}
#comparisonModal th {
  background-color: #f2f2f2;
  font-weight: bold;
}
#comparisonModal tbody tr:nth-of-type(odd) {
  background-color: #ffffff;
}
#comparisonModal tbody tr:nth-of-type(even) {
  background-color: #f9f9f9;
}
#comparisonModal tbody tr:hover {
  background-color: #f1f1f1;
}
#comparisonModal td i {
  margin-right: 8px;
  color: #007bff;
}



/* ======== READ MORE / READ LESS ======== */
.read-more-btn {
  display: none; /* Oculto en desktop */
}

.hide-mobile {
  display: block; /* Por defecto */
  margin-top: 10px;
}

/* Demo Vivo Grid */
.demo-vivo-grid {
  display: flex;            /* Flex container en desktop */
  align-items: center;      /* Centramos verticalmente */
  justify-content: center;  /* Centrado horizontal */
  gap: 30px;                /* Espacio entre columnas */
  margin-top: 20px;         /* Un poco de margen adicional si quieres */
}
/* Columna de texto */
.demo-text {
  flex: 1;                  /* Ocupa el espacio disponible */
  font-size: 1rem;
  line-height: 1.5;
}
/* Columna del QR */
.demo-qr {
  flex: 1;                  /* Ocupa la otra mitad en desktop */
  text-align: center;
}
.demo-qr-img {
  max-width: 220px;         /* Ajusta el tamaño del QR */
  width: 100%;              /* Se acopla al max-width */
  height: auto;            /* Mantiene proporción */
  border: 1px solid #ddd;  /* Borde opcional */
  border-radius: 8px;      /* Esquinas suaves opcional */
}

/* ======== FAQ ======== */
.faq h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #111;
}
.faq p {
  color: #555;
  margin-bottom: 16px;
}

.faq-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 20px;
}
.faq-list li {
  margin-bottom: 24px;
}
.faq-list h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #111;
}
.faq-list p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* ======== CTA FINAL ======== */
.cta-final {
  text-align: center;
  background-color: #fafafa;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
.cta-final h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #111;
}
.cta-final .btn {
  margin-top: 15px;
}

/* Responsividad */
@media (max-width: 768px) {
  /* Ocultar la tabla de comparación en móviles */
  .desktop-table {
    display: none;
  }
  .navbar-title {
    display: none;
  }

  .comparison-table{
    display: none;
  }

  .hide-mobile {
    display: none;
  }
}

/* ======== MODAL ======== */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* Centrar el modal */
  width: 90%; 
  max-width: 500px; /* Tamaño máximo */
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
  padding: 0 20px;
  overflow: hidden; /* Prevenir scroll innecesario */
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Sombra del modal */
  position: relative;
  text-align: center; /* Centrar el texto */
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
  color: #000;
}

/* ======== FORMULARIO DENTRO DEL MODAL ======== */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.confirmation-message {
  color: #28a745; /* Verde de éxito */
  font-weight: bold;
  margin-top: 20px;
}

/* ======== RESPONSIVIDAD ======== */
@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0; /* Sin esquinas redondeadas en móviles */
    overflow-y: auto; /* Habilitar scroll en contenido largo */
  }

  .modal {
    padding: 0; /* Eliminar padding adicional */
  }
}
