/* ================================
   FORMS — Módulo reutilizable
   ================================ */

.producto-section {
  width: 100%;
  max-width: 860px;
  margin: 40px auto 60px;
  padding: 0 24px;
}

.producto-section h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1d1d1f;
  margin-bottom: 28px;
}

/* ================================
   GRID DE CAMPOS
   ================================ */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 20px;
}

.form-grid--single {
  grid-template-columns: 1fr;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo.full {
  grid-column: 1 / -1;
}

/* ================================
   LABELS
   ================================ */

.campo label {
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ================================
   INPUTS / SELECT / TEXTAREA
   ================================ */

.campo input[type="text"],
.campo input[type="email"],
.campo input[type="tel"],
.campo input[type="number"],
.campo input[type="password"],
.campo select,
.campo textarea {
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1d1d1f;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: #149440;
  box-shadow: 0 0 0 3px rgba(20, 148, 64, 0.1);
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: #b0b0b5;
}

.campo select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%236e6e73' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.campo textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

/* ================================
   PANEL DE TRANSFERENCIA
   ================================ */

.transferencia-info {
  margin-top: 12px;
  padding: 16px 18px;
  background: #f5f5f7;
  border: 1px solid #e0e0e5;
  border-radius: 12px;
  font-size: 14px;
  color: #1d1d1f;
  line-height: 1.8;
}

.transferencia-info p {
  margin: 0;
}

.transferencia-info .transferencia-nota {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #d2d2d7;
  font-size: 12px;
  color: #6e6e73;
  line-height: 1.6;
}

/* ================================
   RECAPTCHA
   ================================ */

.g-recaptcha {
  margin: 20px 0 8px;
}

/* ================================
   BOTONES DE FORMULARIO
   ================================ */

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

/* DESPUÉS — solo dentro de formularios */
.form-actions button[type="submit"],
.producto-section button[type="submit"],
.login-section button[type="submit"] {
  background-color: #149440;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-actions button[type="submit"]:hover,
.producto-section button[type="submit"]:hover,
.login-section button[type="submit"]:hover {
  background-color: #0f7333;
}

.cancelar {
  font-size: 14px;
  color: #6e6e73;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cancelar:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}

/* ================================
   MENSAJES DE ESTADO
   ================================ */

.form-msg {
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  width: 100%;
}

.form-msg--error {
  background: #fdf0ee;
  color: #c0392b;
  border: 1px solid #f5c6c0;
}

.form-msg--success {
  background: #e6f3ec;
  color: #149440;
  border: 1px solid #b8dfc6;
}

/* ================================
   TOGGLE CONTRASEÑA
   ================================ */

.toggle-password {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.toggle-password input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #149440;
  cursor: pointer;
}

.toggle-password label {
  font-size: 12px;
  color: #6e6e73;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  font-weight: 400;
}

/* ================================
   LINKS DEBAJO DEL FORMULARIO
   ================================ */

.form-links {
  margin-top: 20px;
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.8;
}

.form-links a {
  color: #149440;
  text-decoration: none;
  font-weight: 500;
}

.form-links a:hover {
  text-decoration: underline;
}

/* ================================
   SEPARADOR Y REENVÍO
   ================================ */

.form-divider {
  border: none;
  border-top: 1px solid #d2d2d7;
  margin: 28px 0;
  width: 100%;
}

.form-reenvio-label {
  font-size: 14px;
  color: #6e6e73;
  margin-bottom: 12px;
}

/* ================================
   LOGIN / REGISTRO — Centrado
   ================================ */

.login-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.login-section h1 {
  text-align: center;
  width: 100%;
}

.login-section .form-grid,
.login-section .form-actions,
.login-section .form-links,
.login-section .form-msg,
.login-section .form-divider,
.login-section .form-reenvio-label {
  width: 100%;
  max-width: 400px;
}

.login-section .form-actions {
  justify-content: stretch;
}

.login-section .form-actions button[type="submit"] {
  width: 100%;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
  .producto-section {
    margin-top: 24px;
    padding: 0 16px;
  }

  .producto-section h1 {
    font-size: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 12px;
  }

  .campo.full {
    grid-column: 1;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .login-section {
    padding: 32px 16px 48px;
  }
  
  .login-section .form-grid,
  .login-section .form-actions,
  .login-section .form-links,
  .login-section .form-msg {
    max-width: 100%;   
  }
}