/* === Estilos generales === */
body {
  background-color: #faf6f2;
  font-family: 'Poppins', sans-serif;
  color: #4a3f35;
}

/* Marca y logo */
.navbar-brand {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #e5d4b8 !important;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}
.logo-redondo {
  width: 60px;   /* nuevo ancho */
  height: 60px;  /* nueva altura */
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 10px rgba(229, 212, 184, 0.7);
  object-fit: cover;
}

/* === Navbar === */
.custom-navbar {
  background-color: #fffaf6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-redondo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  font-weight: 600;
  font-size: 1.2rem;
  color: #4a3f35;
}

.nav-link {
  color: #4a3f35;
  transition: 0.3s;
  border-radius: 8px;
  padding: 8px 14px;
}

/* === Formulario === */
.recuadro-form {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 40px auto;
  padding: 30px 25px;
  border: 1px solid #e6e3df;
  transition: transform 0.3s, box-shadow 0.3s;
}

.recuadro-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* === Títulos === */
.section-title {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #4a3f35;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background-color: #b2744c;
  display: block;
  margin: 10px auto;
  border-radius: 5px;
}

/* === Inputs === */
.form-control,
.form-select,
textarea {
  border-radius: 12px;
  border: 1px solid #e6e3df;
  padding: 10px;
  transition: all 0.3s;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: #b2744c;
  box-shadow: 0 0 5px rgba(178,116,76,0.3);
  outline: none;
}

/* === Botón === */
.btn-primary-custom {
  width: 100%;
  background-color: #b2744c;
  color: #fff;
  border-radius: 20px;
  padding: 10px;
  border: none;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-primary-custom:hover {
  background-color: #8e5d3c;
  transform: translateY(-2px);
}

/* === Mensaje de éxito === */
#mensajeExito {
  opacity: 1 !important;
  height: auto !important;
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 15px;
  text-align: center;
}

/* === Footer === */
.footer-custom {
  background-color: #4a3f35;
  color: #fff;
}

.footer-link {
  color: #e6c7a2;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 576px) {
  .recuadro-form {
    padding: 20px 15px;
    margin: 20px 10px;
  }
}

    /* Ajuste para que el contenido no quede debajo de la Navbar fija */
    body { padding-top: 100px; }
    
    /* Aseguramos que el mensaje de respuesta sea visible según tu diseño anterior */
    .form-response {
      margin-top: 15px;
      padding: 15px;
      border-radius: 10px;
      display: none;
      text-align: center;
      font-weight: 600;
    }

    /* Estilo extra para el mensaje de éxito final */
    .success-icon {
        font-size: 4rem;
        color: #28a745;
        margin-bottom: 20px;
        display: block;
    }

    /* NUEVO: Estilo para el mensaje de Agotado/Cerrado */
    .closed-icon {
        font-size: 4rem;
        color: #dc3545;
        margin-bottom: 20px;
        display: block;
    }
    #mensajeBloqueo {
        display: none;
        text-align: center;
        padding: 40px 20px;
    }

    /* Estilo para que la CLABE no se amontone en pantallas pequeñas */
.clabe-texto {
    font-size: 1.05rem; 
    color: #d63384; 
    letter-spacing: 0.5px;
    word-break: break-all; /* Evita que se salga del recuadro */
}

/* Botón adaptable */
.btn-copiar-adaptable {
    border-radius: 6px;
    font-size: 0.8rem;
    padding: 5px 12px;
    white-space: nowrap;
    margin-left: 10px;
}

/* Ajustes específicos para pantallas menores a 400px (Celulares chicos) */
@media (max-width: 400px) {
    .clabe-texto {
        font-size: 0.9rem; /* Achicamos un poco la letra de la CLABE */
    }
    
    .btn-copiar-adaptable {
        padding: 4px 8px; /* Menos relleno */
        font-size: 0.7rem; /* Letra más chica */
    }

    .btn-copiar-adaptable .texto-boton {
        display: none; /* Escondemos la palabra "Copiar" y solo dejamos el icono */
    }
    
    .btn-copiar-adaptable i {
        margin: 0 !important; /* Centramos el icono */
        font-size: 0.9rem;
    }
}

/* Texto de la CLABE */
.clabe-texto {
    font-size: 1rem; 
    color: #d63384; 
    letter-spacing: 0.3px;
    font-family: monospace;
}

/* Botón adaptable */
.btn-copiar-adaptable {
    border-radius: 6px;
    font-size: 0.75rem;
    padding: 4px 10px;
    white-space: nowrap;
    flex-shrink: 0; /* Evita que el botón se deforme */
}

/* Cuando la pantalla es muy pequeña */
@media (max-width: 450px) {
    .clabe-texto {
        font-size: 0.85rem; /* Achicamos ligeramente para que quepa todo */
    }
    
    .btn-copiar-adaptable .texto-boton {
        display: none; /* Escondemos la palabra "Copiar" en celulares muy chicos */
    }
    
    .btn-copiar-adaptable {
        padding: 5px 8px;
    }
}

