/* --- ESTILOS GENERALES Y FUENTES --- */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  color: #333;
}

/* --- ENCABEZADO Y NAVEGACIÓN --- */
header {
  background-color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #2c2c2c;
}

.navbar {
  background-color: #333;
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #f0a5a5; /* Un color de acento suave */
}

/* --- CONTENEDOR PRINCIPAL DEL FORMULARIO --- */
.form-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2.5rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-container h2 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-container p {
  text-align: center;
  margin-bottom: 2rem;
  color: #777;
}

.form-divider {
  border: 0;
  height: 1px;
  background-color: #e0e0e0;
  margin: 2rem 0;
}

/* --- ESTRUCTURA DEL FORMULARIO (FILAS Y GRUPOS) --- */
.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
  flex: 1; /* Ocupa el espacio disponible */
}

.form-group label {
  display: block;
  font-weight: 400;
  margin-bottom: 8px;
  color: #555;
  font-size: 0.9rem;
}

/* --- ESTILOS PARA LOS CAMPOS DEL FORMULARIO --- */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box; /* Importante para el padding */
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #c58c85; /* Color de acento */
  box-shadow: 0 0 0 3px rgba(197, 140, 133, 0.2);
}

textarea {
  resize: vertical;
}

/* --- BOTÓN DE ENVÍO --- */
.submit-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background-color: #333;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background-color: #555;
  transform: translateY(-2px);
}

/* --- ESTILOS DEL FOOTER (PIE DE PÁGINA) --- */
.footer {
  background-color: #2c2c2c;
  color: #fff;
  padding: 40px 20px;
}

.footer-contenido {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columna {
  flex: 1;
  min-width: 250px;
  margin: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border-radius: 50%;
}

.footer-columna h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 1px solid #555;
  padding-bottom: 10px;
}

.iconos-redes a, .iconos-pagos i {
  color: #fff;
  font-size: 1.8rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.iconos-redes a:hover {
  color: #f0a5a5;
}

.footer-contacto p {
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.footer-contacto i {
  margin-right: 10px;
}

.footer-copy {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #555;
  font-size: 0.9rem;
}

.footer-copy i {
  color: #e74c3c;
}


/* --- DISEÑO RESPONSIVE PARA MÓVILES --- */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column; /* Apila los campos en vez de ponerlos en fila */
    gap: 0;
  }
  .form-container {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .footer-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}