/* === 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;
  }
}


.terminos {
  display: flex;
  align-items: center;
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #111;
}

.terminos input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  accent-color: #8B1A1A; /* nuestro rojo */
  cursor: pointer;
}

.terminos label {
  font-size: 14px;
  cursor: pointer;
}

.terminos a {
  color: #8B1A1A; /* mismo rojo de la web */
  font-weight: 600;
  text-decoration: none;
}

.terminos a:hover {
  text-decoration: underline;
}

/* === Popup central de carga (versión mejorada) === */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75); /* fondo claro profesional */
  display: none; /* hidden por defecto */
  align-items: center;
  justify-content: center;
  z-index: 9999;

  backdrop-filter: blur(3px); /* efecto elegante */
}

/* La tarjeta central del popup */
#loading-overlay .popup-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 35px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  max-width: 380px;
  width: 90%;
  animation: fadeIn 0.3s ease-out;
}

/* Título */
#loading-overlay h3 {
  color: #611232;
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 8px;
}

/* Texto */
#loading-overlay p {
  color: #444;
  font-size: 14px;
  line-height: 1.4;
}

/* Spinner */
.spinner {
  border: 4px solid #ddd;
  border-top: 4px solid #611232;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  margin: 0 auto 15px;
  animation: spin 0.9s linear infinite;
}

/* Animaciones */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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


/* ===============================
   RESULTADO FINAL – CONTENEDOR
================================ */
.resultado-final {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ===============================
   ESTADO CURP – ESTILO FINO
================================ */
.estado-curp {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    width: 100%;
    margin: 18px auto 16px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ICONO */
.estado-icono {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

/* TEXTO */
.estado-texto {
    text-align: left;
}

.estado-texto strong {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.estado-texto span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 2px;
}

/* ===============================
   CERTIFICADA (VERDE SUAVE)
================================ */
.estado-curp.certificada {
    background-color: #ecf8f1;
    border: 1px solid #bfe6d3;
    color: #1f7a55;
}

.estado-curp.certificada .estado-icono {
    background-color: #1f7a55;
    color: #ffffff;
}

/* ===============================
   NO CERTIFICADA (ROJO SUAVE)
================================ */
.estado-curp.no-certificada {
    background-color: #fdecea;
    border: 1px solid #f5c6cb;
    color: #8a1c1c;
}

.estado-curp.no-certificada .estado-icono {
    background-color: #8a1c1c;
    color: #ffffff;
}

/* ===============================
   ACCIONES / BOTONES
================================ */
.acciones {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.btn-correcto,
.btn-pack {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

/* Botón principal */
.btn-correcto,
.btn-pack {
    background-color: #611232;
    color: #ffffff;
}

/* ===============================
   RESPONSIVE MÓVIL
================================ */
@media (max-width: 768px) {

    .estado-curp {
        max-width: 100%;
        padding: 14px;
    }

    .estado-texto {
        text-align: left;
    }

    .acciones {
        padding: 0 15px;
    }

    .btn-correcto,
    .btn-pack {
        width: 100%;
        max-width: 420px;
    }
}


/* ===== CERTIFICACIÓN CURP ===== */

.cert-box {
    max-width: 820px;
    margin: 0 auto;
}

.cert-box h1 {
    margin-bottom: 8px;
}

.subtitulo {
    font-size: 1.05em;
    color: #444;
    margin-bottom: 28px;
}

/* INFO BOX */
.info-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 26px 30px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.info-box h2 {
    margin-bottom: 16px;
    color: #611232;
}

/* LISTA CON CHECKS */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 0.95em;
    line-height: 1.4;
}

.check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #2f855a;
    font-weight: bold;
}

/* SEGUNDO BLOQUE */
.info-secondary {
    background: #fafafa;
    border: 1px solid #e6e6e6;
    box-shadow: none;
}

/* CTA */
.acciones-centradas {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.btn-grande {
    padding: 18px 40px;
    font-size: 1.05em;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(97,18,50,0.25);
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .cert-box {
        padding: 0 10px;
    }

    .info-box {
        padding: 22px;
    }

    .btn-grande {
        width: 100%;
        max-width: 420px;
        text-align: center;
    }
}


/* ===== FORM CARD (MISMO LOOK QUE PASO 1) ===== */

.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 32px;
    max-width: 760px;
    margin: 25px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.form-card h2 {
    margin-bottom: 8px;
}

.form-card .descripcion {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 25px;
}

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

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

.form-group input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #bbb;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: #611232;
    box-shadow: 0 0 0 2px rgba(97,18,50,0.12);
}

.nota-legal {
    font-size: 0.85em;
    color: #666;
    margin: 15px 0 20px;
}
