/* 
 * assets/css/contacto.css
 * ---------------------------------------------------------
 * Estilos específicos para la sección pública de Contacto.
 */

/* Hero Sección Contacto */
.hero-contacto {
  background: var(--color-fondo-oscuro-gradient);
  border-bottom: 1px solid var(--color-borde-dorado);
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-contacto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(217, 154, 78, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-contacto h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  letter-spacing: -1px;
}

.hero-contacto .subtitulo {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--color-texto-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Sección Formulario */
.contacto-formulario {
  padding: 5rem 1.5rem;
  background-color: var(--color-fondo-oscuro);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacto-formulario form {
  width: 100%;
  max-width: 700px;
  background-color: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-borde-dorado);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.campo label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

.campo label .req {
  color: #ff9e9e;
}

.campo input[type="text"],
.campo input[type="email"],
.campo input[type="tel"],
.campo select,
.campo textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--color-borde-dorado);
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 0.98rem;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--color-dorado);
  box-shadow: 0 0 0 3px rgba(217, 154, 78, 0.15);
  outline: none;
}

.campo select option {
  background-color: #1a140d;
  color: #fff;
}

.campo-fila {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .campo-fila {
    grid-template-columns: 1fr 1fr;
  }
}

.nota {
  margin: -0.5rem 0 0 0;
  font-size: 0.82rem;
  color: var(--color-texto-muted);
}

.campo small.contador {
  align-self: flex-end;
  font-size: 0.78rem;
  color: var(--color-texto-muted);
  margin-top: 2px;
}

/* Checkbox */
.campo.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.campo.checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-dorado);
}

.campo.checkbox label {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-texto-claro);
  cursor: pointer;
}

.campo.aviso-privacidad {
  color: var(--color-texto-muted);
  line-height: 1.4;
}

.campo.aviso-privacidad p {
  margin: 0;
}

/* Botón de Envío */
.btn-enviar {
  background-color: var(--color-dorado);
  color: var(--color-fondo-oscuro);
  border: 1px solid var(--color-dorado);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(217, 154, 78, 0.25);
  margin-top: 1rem;
}

.btn-enviar:hover:not(:disabled) {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-enviar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Alertas de Mensaje (Flash) */
.alerta-contacto {
  width: 100%;
  max-width: 700px;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-sizing: border-box;
  font-size: 0.95rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.4s ease;
}

.alerta-contacto-error {
  background-color: rgba(220, 38, 38, 0.12);
  color: #ff9e9e;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.alerta-contacto-ok {
  background-color: rgba(16, 185, 129, 0.12);
  color: #a3e9a4;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.alerta-contacto svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
