.parallax {
  background-image: url('../images/footer.webp');
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
}

.contact-section {
  max-width: 42rem;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.contact-intro {
  text-align: center;
  color: rgba(239, 246, 224, 0.95);
  margin: 0 auto 2rem;
  max-width: 36rem;
  line-height: 1.6;
}

.contact-form-card {
  background: rgba(2, 48, 71, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(142, 202, 230, 0.35);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 20, 0.35);
}

.contact-form-card h2 {
  font-size: 1.15rem;
  color: var(--gold, #ffb703);
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.85rem;
  color: #eff6e0;
  letter-spacing: 0.04em;
}

.form-field label .req {
  color: #fb8500;
}

.form-field label .opt {
  color: rgba(239, 246, 224, 0.65);
  font-weight: normal;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(142, 202, 230, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: #023047;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #fb8500;
  box-shadow: 0 0 0 3px rgba(251, 133, 0, 0.25);
}

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

.form-optional {
  margin-top: 0.5rem;
  border: 1px solid rgba(142, 202, 230, 0.25);
  border-radius: 10px;
  overflow: hidden;
}

.form-optional summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  color: #8ecae6;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  list-style: none;
  background: rgba(33, 158, 188, 0.15);
}

.form-optional summary::-webkit-details-marker {
  display: none;
}

.form-optional summary::after {
  content: "+";
  float: right;
  color: #ffb703;
}

.form-optional[open] summary::after {
  content: "−";
}

.form-optional__body {
  padding: 1rem 1rem 0.25rem;
  border-top: 1px solid rgba(142, 202, 230, 0.2);
}

.services-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.service-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #eff6e0;
  font-size: 0.78rem;
  line-height: 1.35;
  cursor: pointer;
}

.service-check input {
  width: auto;
  margin-top: 0.15rem;
  accent-color: #fb8500;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: #fb8500;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(251, 133, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-submit:hover {
  background: #023047;
  color: #ffb703;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 133, 0, 0.35);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 0.75rem;
  color: rgba(239, 246, 224, 0.75);
  text-align: center;
  line-height: 1.5;
}

/* Honeypot: oculto para usuarios, visible para bots */
.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  color: #ffb703;
  background: rgba(251, 133, 0, 0.12);
  border: 1px solid rgba(251, 133, 0, 0.35);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
  display: none;
}

.form-success.is-visible {
  display: block;
}

.form-success i {
  font-size: 2.5rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.form-success h3 {
  color: #eff6e0;
  margin-bottom: 0.75rem;
}

.form-success p {
  color: rgba(239, 246, 224, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.contact-sidebar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.contact-sidebar-item {
  text-align: center;
  padding: 1rem;
  background: rgba(2, 48, 71, 0.5);
  border: 1px solid rgba(142, 202, 230, 0.2);
  border-radius: 12px;
  color: #eff6e0;
}

.contact-sidebar-item i {
  color: #fb8500;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-sidebar-item a {
  color: #8ecae6;
  font-size: 0.78rem;
  word-break: break-word;
}

.contact-sidebar-item p {
  margin: 0;
}

/* Móvil: mail + WhatsApp arriba; ubicación abajo en fila horizontal */
@media (max-width: 768px) {
  .contact-sidebar {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  .contact-sidebar-item--mail,
  .contact-sidebar-item--whatsapp {
    min-width: 0;
  }

  .contact-sidebar-item--location {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    text-align: left;
  }

  .contact-sidebar-item--location i {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .contact-sidebar-item--location p {
    font-size: clamp(0.68rem, 2.8vw, 0.82rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .contact-sidebar-item--location {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .contact-sidebar-item--location p {
    white-space: normal;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 1.25rem;
  }
}
