/* ==========================================================================
   Página de contacto — se dibuja con js/contact-page.js
   Formulario + datos de la tienda | imagen o vídeo, y franja de horario.
   Reutiliza la miga de pan, el título y el texto enriquecido de content-page.css.
   ========================================================================== */

body { background: #fff; }

.contact:focus { outline: none; }

.contact__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.contact__main { max-width: 560px; }
.contact__title { margin-bottom: 16px; }
.contact__intro { margin-bottom: 28px; color: #333; }

.contact__subtitle {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}

/* ---------- Datos de la tienda ---------- */
.contact__details { margin-bottom: 40px; }
.contact__details-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.5;
}
.contact__address { margin: 0; }
.contact__details-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact__details-list a:hover { color: #751fff; }
.contact__map { font-weight: 700; }

/* ---------- Formulario ---------- */
.contact__form {
  display: grid;
  gap: 22px;
}
.contact__form[hidden],
.contact__subtitle[hidden] { display: none; }

.contact__note {
  margin: 0;
  font-size: 14px;
  color: #525252;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact__field { display: grid; gap: 6px; }

.contact__label {
  font-size: 15px;
  font-weight: 400;
}
.contact__req { color: #b3261e; }

/* Campos subrayados, como en la web original */
.contact__input {
  width: 100%;
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 300;
  color: #000;
}
.contact__input--area {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}
.contact__input:focus-visible {
  outline: 2px solid #751fff;
  outline-offset: 2px;
  border-bottom-color: #751fff;
}
.contact__input[aria-invalid="true"] {
  border-bottom: 2px solid #b3261e;
}

.contact__error {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #b3261e;
}
.contact__error[hidden] { display: none; }

.contact__help {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: #404040;
}

/* Foto: el input de archivo queda oculto a la vista; el recuadro es su etiqueta */
.contact__file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact__photo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 240px;
  max-width: 100%;
  height: 100px;
  border: 1px solid #000;
  font-size: 16px;
  font-weight: 300;
  cursor: pointer;
  transition: background-color .3s ease;
}
.contact__photo-box:hover { background: #f4f0ff; }
.contact__file:focus-visible + .contact__photo-box {
  outline: 2px solid #751fff;
  outline-offset: 3px;
}
.contact__file[aria-invalid="true"] + .contact__photo-box { border: 2px solid #b3261e; }
.contact__photo-box[hidden] { display: none; }
.contact__photo-plus { font-size: 26px; line-height: 1; }

.contact__preview {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact__preview[hidden] { display: none; }
.contact__preview-img {
  width: 96px;
  height: 96px;
  border: 1px solid #ddd;
  object-fit: cover;
}
.contact__preview p {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.contact__preview-remove {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.contact__preview-remove:hover { color: #751fff; }
.contact__preview-remove:focus-visible { outline: 2px solid #751fff; outline-offset: 2px; }

/* Aceptación de la política de privacidad */
.contact__check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
}
.contact__check {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: #000;
}
.contact__check:focus-visible { outline: 2px solid #751fff; outline-offset: 2px; }
.contact__check-text a { text-decoration: underline; text-underline-offset: 3px; }
.contact__check-text a:hover { color: #751fff; }

.contact__summary {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid #b3261e;
  background: #fdf0ef;
  font-size: 15px;
  font-weight: 700;
  color: #8c1d18;
}
.contact__summary[hidden] { display: none; }

.contact__submit { justify-self: start; min-width: 160px; }
.contact__submit:disabled { opacity: .7; cursor: progress; }

/* Mensaje de agradecimiento */
.contact__thanks {
  padding: 32px 28px;
  background: #f4f0ff;
}
.contact__thanks[hidden] { display: none; }
.contact__thanks-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
}
.contact__thanks-title:focus { outline: none; }
.contact__thanks-text {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 300;
}

/* ---------- Imagen o vídeo ---------- */
.contact__media {
  position: sticky;
  top: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #e9e4e1;
}
.contact__media-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Horario ---------- */
.contact__schedule { background: #f0f0f0; }
.contact__schedule-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}
.contact__schedule-title {
  margin: 0 0 20px;
  font-size: 36px;
  font-weight: 700;
}
.contact__hours {
  display: grid;
  gap: 12px;
  max-width: 440px;
  margin: 0;
  font-size: 17px;
  font-weight: 300;
}
.contact__hours-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}
.contact__hours dt { font-weight: 400; }
.contact__hours dd { margin: 0; }

/* ---------- Tableta y móvil ---------- */
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact__main { max-width: none; }
  /* La imagen pasa arriba y más baja para no empujar el formulario */
  .contact__media { order: -1; position: static; aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
  .contact__inner { padding: 28px 16px 48px; }
  .contact__row { grid-template-columns: 1fr; }
  .contact__schedule-inner { padding: 36px 16px 44px; }
  .contact__schedule-title { font-size: 28px; }
  .contact__submit { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .contact__photo-box { transition: none; }
}
