/* === Reset básico === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #000;
}

a {
  color: #611232;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Header === */
.top-header {
  background-color: #611232;
  padding: 16px 20px;
  color: white;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

.logo {
  height: 40px;
}

@media screen and (min-width: 768px) {
  .header-container {
    justify-content: flex-start;
  }



}

/* === Breadcrumb === */
.breadcrumb {
  font-size: 14px;
  padding: 16px 20px;
  background-color: #f8f8f8;
}

.breadcrumb a {
  color: #611232;
}

/* === Main container === */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

/* === Título principal === */
h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #111;
}

/* === Pasos === */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.step {
  text-align: center;
  background-color: #eaeaea;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  font-weight: normal;
}

.step.active {
  background-color: #611232;
  color: white;
  font-weight: bold;
}


@media screen and (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr); /* En escritorio: 4 columnas */
  }
}


/* === CURP Form === */
.curp-section {
  background: #fafafa;
  padding: 20px 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-top: 20px;
}

.curp-section h2 {
  color: #611232;
  margin-bottom: 12px;
  font-size: 20px;
}

.curp-section p {
  font-size: 15px;
  margin-bottom: 20px;
}

.curp-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.curp-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 16px;
}

.curp-form button {
  background-color: #611232;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.curp-form button:hover {
  background-color: #4d0e26;
}

.ayuda {
  font-size: 13px;
  margin-top: 12px;
}

/* === Info final === */
.info-box {
  background-color: #f1f1f1;
  padding: 30px 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-top: 50px;
  text-align: center;
}

.info-box h2 {
  font-size: 20px;
  color: #611232;
  margin-bottom: 12px;
}

.info-box p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.quienes-somos {
  margin-top: 60px;
  padding: 30px 20px;
  border-top: 1px solid #eee;
}

.quienes-somos h2 {
  font-size: 20px;
  color: #611232;
  margin-bottom: 12px;
}

.quienes-somos p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.faq-box {
  margin-top: 60px;
}

.faq-box h2 {
  font-size: 20px;
  color: #611232;
  margin-bottom: 16px;
}

.faq-box details {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: #fdfdfd;
}

.faq-box summary {
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
  color: #333;
}

.faq-box p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.footer {
  margin-top: 120px;
  padding: 20px;
  font-size: 13px;
  color: #555;
  text-align: center;
  background-color: #f7f7f7;
  border-top: 1px solid #ddd;
}

.ventajas-servicio {
  margin-top: 50px;
}

.ventajas-servicio h2 {
  font-size: 20px;
  color: #611232;
  margin-bottom: 10px;
}

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

.ventajas-servicio li {
  font-size: 15px;
  margin-bottom: 10px;
  color: #333;
}

/* === Tabla de resultados === */
/* === Resultados === */
.resultados-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.resultados-container h2 {
  text-align: center;
  color: #611232;
  margin-bottom: 20px;
}

.resultados-container table {
  width: 100%;
  border-collapse: collapse;
}

.resultados-container th,
.resultados-container td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

.resultados-container th {
  width: 40%;
  font-weight: bold;
  background-color: #f9f9f9;
  color: #333;
}

.resultados-container td {
  width: 60%;
  color: #000;
}

/* Responsivo */
@media (max-width: 600px) {
  .resultados-container table,
  .resultados-container tbody,
  .resultados-container tr,
  .resultados-container th,
  .resultados-container td {
    display: block;
    width: 100%;
  }

  .resultados-container tr {
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
  }

  .resultados-container th {
    background: none;
    color: #611232;
    padding-bottom: 5px;
  }

  .resultados-container td {
    padding-top: 0;
  }
}

.acciones {
  text-align: center;
  margin-top: 20px;
}

.btn-correcto {
  display: inline-block;
  background-color: #611232;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.btn-correcto:hover {
  background-color: #4d0e26;
}

.link-incorrecto {
  color: #611232;
  text-decoration: underline;
  font-size: 14px;
}

/* === Popup de carga === */
#loadingPopup {
  display: none; /* Oculto por defecto, se muestra con JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* Fondo oscuro translúcido */
  z-index: 9999;

  /* centrado del contenido */
  align-items: center;
  justify-content: center;
}

#loadingPopup.show {
  display: flex; /* Solo aparece cuando se le agrega la clase "show" */
}

#loadingPopup .content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  max-width: 400px;
  width: 90%;
}

#loadingPopup h3 {
  color: #611232;
  margin-bottom: 10px;
}

#loadingPopup p {
  font-size: 14px;
  color: #333;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #611232;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 20px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* === Formulario de tarjeta Mollie === */
.form-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;   /* separación entre campos */
}

.form-row label {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  margin-bottom: 6px;   /* separación entre label y campo */
}

#card-holder,
#card-number,
#expiry-date,
#verification-code {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  box-sizing: border-box;
  display: block;
}

#card-holder:hover,
#card-number:hover,
#expiry-date:hover,
#verification-code:hover {
  border-color: #000;
}

/* Para errores debajo del campo */
.error-field {
  color: #b00020;
  font-size: 13px;
  margin-top: 4px;
}

/* Expiry + CVV en la misma línea */
.form-row-inline {
  display: flex;
  justify-content: space-between;
  gap: 12px;   /* espacio entre ambos campos */
}

.form-row-inline > div {
  flex: 1;
}


.titulo-azul {
  background-color: #611232;
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px 6px 0 0;
  border: none;
}

/* === Logos seguridad === */
.logos-seguridad {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px;
}

.logos-seguridad img {
  height: 35px; /* más pequeño */
  display: block;
}

/* === Form Stripe === */
#payment-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

#card-element {
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 16px;
}

#submit {
  background-color: #611232;
  color: #fff;
  padding: 14px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

#submit:hover {
  background-color: #611232;
}

#error-message {
  margin-top: 10px;
  color: #b00020;
  font-size: 14px;
}

/* === Resumen del pedido === */
.contenido-resumen p {
  font-size: 15px;
  color: #333;
  margin-bottom: 10px;
}

.contenido-resumen strong {
  color: #111;
}

.precio {
  font-weight: 600;
  color: #611232;
  font-size: 1.3rem;
  display: inline-block;
  margin-left: 4px;
}

.contenido-resumen img {
  height: 40px;
}


/* === Ajuste responsive SOLO para la tabla de resultados === */
@media screen and (max-width: 600px) {
  .resultados-container {
    padding: 15px;
    box-shadow: none;
    border-radius: 6px;
  }

  .resultados-container table,
  .resultados-container tbody,
  .resultados-container tr,
  .resultados-container th,
  .resultados-container td {
    display: block;
    width: 100%;
  }

  .resultados-container tr {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    background: #fafafa;
  }

  .resultados-container th {
    font-size: 14px;
    font-weight: 700;
    color: #611232;
    padding-bottom: 4px;
  }

  .resultados-container td {
    font-size: 14px;
    color: #333;
    padding-top: 2px;
  }
}
