/* ===========================
   VARIABLES GLOBALES
=========================== */
:root {
  --color-brand: #ff0033;
  --color-bg: #ffffff;
  --color-text: #222222;
  --color-muted: #555555;
  --color-title: var(--color-brand);
  --color-titulo-contacto: #000000; /* Negro en modo claro */
}

body.dark-mode {
  --color-bg: #121212;
  --color-text: #ffffff;
  --color-muted: #cccccc;
  --color-title: #ffffff;
  --color-titulo-contacto: #ffffff; /* Blanco en modo oscuro */
}


/* ===========================
   SECCIÓN CONTACTO
=========================== */

.contacto {
    background-color: var(--color-hero-bg); /* Fondo igual al del hero */
    color: var(--color-text);
    padding: 80px 1.5rem;
    text-align: center;
    position: relative; /* Necesario para que el pseudo-elemento funcione */
}

/* Gradiente de luz igual al hero */
.contacto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 0, 51, 0.08) 0%,
        rgba(255, 0, 51, 0.04) 15%,
        rgba(255, 0, 51, 0) 25%
    );
    pointer-events: none;
    z-index: -1;
}

.contacto h1 {
    font-size: 3rem;
    color: var(--color-titulo-contacto);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.contacto p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--color-text); /* Gris oscuro como en el hero */
    font-size: 1.25rem; /* Tamaño de texto más grande, igual que en el hero */
    line-height: 1.65;
}

/* ===========================
   FORMULARIO CONTACTO
=========================== */

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--color-bg);
  padding: 2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-muted);
  border-radius: 8px;
  font-size: 1rem;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px rgba(255, 0, 51, 0.2);
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===========================
   BOTÓN DE FORMULARIO
=========================== */

.contact-form button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;

  /* Transiciones suaves */
  transition: background-color 0.3s, color 0.8s, box-shadow 0.3s, transform 0.2s;
}

/* Color del texto en reposo según tema */
body.dark-mode .contact-form button {
  color: #fff;
}

body:not(.dark-mode) .contact-form button {
  color: #000;
}

/* Hover efecto */
.contact-form button:hover {
  background-color: var(--color-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,0,51,0.2);
  transform: translateY(-1px);
}

/* ===========================
   MENSAJE DE ESTADO
=========================== */

#formStatus {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--color-text);
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 600px) {
  .contacto h1 {
    font-size: 2rem;
  }

  .contact-form {
    padding: 1.5rem 1rem;
  }
}
