/* =============================
   TARJETA REGALO - ESTILOS GENERALES
============================= */
.regalo {
  font-family: 'Montserrat', sans-serif;
  color: #1a1a1a;
  background-color: #fff;
  padding-top: 6rem; /* header fijo */
  box-sizing: border-box;
  overflow-x: hidden;
}

.regalo-header {
  text-align: center;
  padding: 3rem 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.regalo-header h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 800;
  color: #008c45;
  margin-bottom: 1rem;
}

.regalo-header p {
  font-size: 1.2rem;
  color: #333;
  margin: 0 auto;
  max-width: 50ch;
}

/* =============================
   TARJETAS REGALO
============================= */
.regalo-tarjetas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  padding: 2rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.tarjeta {
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    135deg,
    #ddd,
    #eee
  ); /* color base si js no actúa */
}

/* =============================
   ESTILO VISUAL DE TARJETAS
============================= */

.tarjeta {
  background: #fff;
  color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 1.2rem;
  text-align: left;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: transform 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-4px);
}

/* Icono visual de tarjeta */
.tarjeta-icono {
  font-size: 2.5rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

/* Títulos y contenido */
.tarjeta h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tarjeta .valor {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.tarjeta .detalle {
  font-size: 0.95rem;
  color: #f0f0f0;
  line-height: 1.4;
  flex-grow: 1;
}

/* =============================
   COLORES POR TIPO DE TARJETA
============================= */

.tarjeta-bronce {
  background: linear-gradient(135deg, #5e3c1c, #a47c48);
}

.tarjeta-plata {
  background: linear-gradient(135deg, #cfd1d3, #f5f5f5);
  color: #1a1a1a;
}

.tarjeta-oro {
  background: linear-gradient(135deg, #d4af37, #fff3b0);
  color: #1a1a1a;
}

.tarjeta-personalizada {
  background: linear-gradient(135deg, #000000, #2c2c2c);
}

/* =============================
   FORMULARIO
============================= */
.regalo-formulario {
  padding: 5rem 2rem;
  transition: background 0.5s ease;
  box-sizing: border-box;
}

.formulario {
  background: #fff;
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.campo {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 1rem;
  border: 1px solid #ccc;
  background-color: #fafafa;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

.personalizada-campo {
  display: none;
}

/* =============================
   BOTÓN ESTILO INDEX
============================= */

.btn-enviar {
  position: relative;
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease, background 0.3s ease;
}

.boton {
  text-align: center;
  margin-top: 2rem;
}

.btn-enviar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(135deg, #2e8b57, #ffffff, #d2222d);
  background-size: 300%;
  background-position: 0% 50%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background-position 0.6s ease;
}

.btn-enviar:hover::before {
  background-position: 100% 50%;
}

.btn-enviar:hover {
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

/* =============================
   MENSAJE CONFIRMACIÓN
============================= */
#mensaje-confirmacion {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 700px;
  margin: 0 auto;
}

#mensaje-confirmacion h2 {
  color: #008c45;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* =============================
   RESPONSIVE REAL
============================= */
@media (max-width: 768px) {
  .regalo-header {
    padding: 2rem 1rem;
  }

  .regalo-tarjetas {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .formulario {
    padding: 2rem 1rem;
  }

  .regalo-formulario {
    padding: 3rem 1rem;
  }

  .btn-enviar {
    width: 100%;
  }
}
