/* === 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; /* rojo */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Header === */
.top-header {
  background-color: #611232; /* rojo oscuro */
  padding: 16px 20px;
  border-bottom: 3px solid #611232;
}

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

.logo {
  height: 60px;
}

/* === 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(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.step {
  text-align: center;
  background-color: #fff;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #611232;
  font-weight: 500;
  border: 2px solid #611232;
  transition: all 0.2s ease;
}

.step.active {
  background-color: #611232;
  color: #fff;
  font-weight: 600;
  border: 2px solid #611232;
}

.step.completado {
  background-color: #28a745;
  color: #fff;
  border: 2px solid #28a745;
  font-weight: bold;
}

.step-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: left;
}

.check-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #fff;
  color: #28a745;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
}

.step-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

/* === Layout de contenido === */
.contenido {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

@media screen and (max-width: 900px) {
  .contenido {
    grid-template-columns: 1fr;
  }
}

/* === Cajas principales === */
.col-izq .contenido-blanco,
.col-der .contenido-resumen {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
}

.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;
}

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


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