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

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0073fe, #8941fd);
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}
@media print {
  .no-print {
    display: none !important;
  }
}
.logo {
  margin-top: 40px;
}
.logo img {
  max-width: 280px;
  height: auto;
}

.box {
  margin-top: 30px;
  background: white;
  border-radius: 8px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.box:hover {
  transform: scale(1.01);
}
h2 {
  font-family: 'Roboto', sans-serif;
  text-align: center;
  font-size: 18px;
  background-color: #ffd635;
  color: #02478c;
  padding: 10px 20px;
  border-radius: 10px; /* Bordes redondeados */
  display: inline-block; /* Ajusta el fondo al tamaño del contenido */
  letter-spacing: 1px;
  user-select: none;
}
/*aqui van */  
.input-group select {
  font-size: 16px;
  padding: 16px 12px 12px;
  width: 100%;
  border: none;
  border-bottom: 2px solid #ccc;
  background-color: transparent;
  transition: border-color 0.3s;
  outline: none;
  font-family: 'Roboto', sans-serif;
  color: #333;
  appearance: none;
}

.input-group select:focus {
  border-bottom-color: #0d6efd;
}

.input-group select + label {
  position: absolute;
  top: 14px;
  left: 12px;
  color: #777;
  font-size: 16px;
  pointer-events: none;
  transition: all 0.2s ease;
}

.input-group select:focus + label,
.input-group select:not(:invalid) + label {
  top: -8px;
  left: 8px;
  font-size: 12px;
  background-color: white;
  padding: 0 4px;
  color: #0d6efd;
}

/* hasta aqui */

.input-group {
  position: relative;
  margin-bottom: 30px;
}

.input-group input[type="number"] {
  font-size: 16px;
  padding: 16px 12px 12px;
  width: 100%;
  border: none;
  border-bottom: 2px solid #ccc;
  background-color: transparent;
  transition: border-color 0.3s;
  outline: none;
  font-color: #333333;
  font-family: 'Roboto', sans-serif; /* <- AÑADIR ESTA LÍNEA */
}
/* Chrome, Safari, Edge, Opera */
.input-group input[type="number"]::-webkit-inner-spin-button,
.input-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.input-group input[type="number"] {
  -moz-appearance: textfield;
}


.input-group input[type="number"]:focus {
  border-bottom-color: #0d6efd;
}

.input-group label {
  position: absolute;
  top: 14px;
  left: 12px;
  color: #777;
  font-size: 16px;
  pointer-events: none;
  transition: all 0.2s ease;
}

.input-group input[type="number"]:focus + label,
.input-group input[type="number"]:not(:placeholder-shown) + label {
  top: -8px;
  left: 8px;
  font-size: 12px;
  background-color: white;
  padding: 0 4px;
  color: #0d6efd;
}

.input-group .error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 6px;
}

button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0d6efd, #4e9bff);
  transition: background 0.3s ease, transform 0.2s ease;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Roboto', sans-serif; /* <- AÑADIR ESTA LÍNEA */
}
button:hover {
  background: linear-gradient(135deg, #368cfb, #0d6efd);
  transform: scale(1.02);
}
/* Modal estilo */

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOutScale {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}
.fade-in {
  animation: fadeInScale 0.3s ease forwards;
}

.fade-out {
  animation: fadeOutScale 0.3s ease forwards;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  padding: 10px;
  z-index: 9999;
  overflow: auto;
}
.modal-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #0d6efd;
}
.resumen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
}
.condiciones-texto {
  color: #ff6961; /* rojo no tan intenso */
  font-size: 13px;
  margin-bottom: 10px;
  text-align: center;
}

.modal-content {
  background-color: white;
  color: black;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-align: center;
  padding-bottom: 20px; /* o reduce si quieres */
}
/* Quitar borde sólido */
table {
  width: 100%;
  border-spacing: 0; /* o 0 0 */
  border-radius: 10px;
  border-collapse: separate; /* para que box-shadow funcione bien */
  margin: 20px auto 0 auto; /* centrar tabla */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px; /* bordes redondeados para sombra */
  overflow: hidden; /* recortar sombra en bordes */
  background-color: white; /* fondo blanco para contraste */
  margin-bottom: 0 !important;
}

th, td {
  background-color: white;
  color: #333;
  padding: 12px 16px;
  text-align: left; /* centrar texto */
  font-size: 14px;
  /* quitar borde inferior */
  border: none;
  /* sombra sutil en cada celda */
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.05);
}

th {
  font-weight: 600;
}
.plazo-cuota {
  color: #333333; /* azul Flexiplan */
}

.valor-cuota {
  color: #333333; /* verde éxito */
}


.modal-header {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;
}
.close-btn {
  margin-top: 20px;
  color: #0d6efd;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}
/* Responsive */
@media (max-width: 480px) {
  .modal-content {
    max-width: 100%;
    padding: 15px 10px;
    font-size: 14px;
  }
  table {
    max-width: 100%;
  }
  th, td {
    font-size: 14px;
    padding: 8px 10px;
  }
}