/* ==========================================================================
   Contacto (master_beta) — 2026-10-16
   - .mlcon: página de contacto (templates/contact.tpl)
   - .mlcf : formulario de contactform (modules/contactform/.../contactform.tpl), también en la CMS 7
   ========================================================================== */
.mlcon, .mlcf {
  --mlcon-ink: #1d2a55;
  --mlcon-ink-2: #3750a3;
  --mlcon-text: #1a2332;
  --mlcon-muted: #5b6575;
  --mlcon-line: #e3e6eb;
}

/* custom.css: #left-column a todo el ancho con padding 5rem/10rem */
body#contact #wrapper .container-fluid #left-column { padding-top: 3.5rem; padding-bottom: 5rem; }

.mlcon { max-width: 1180px; margin-inline: auto; color: var(--mlcon-text); }
.mlcon__head { max-width: 720px; margin-bottom: 36px; }
.mlcon__eyebrow { display: block; margin-bottom: 12px; color: var(--mlcon-muted); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; }
.mlcon__title { margin: 0 0 12px; padding: 0; color: var(--mlcon-ink); font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; line-height: 1.15; letter-spacing: -.8px; text-align: left; text-transform: none; }
.mlcon__intro { margin: 0; color: var(--mlcon-muted); font-size: 15px; line-height: 1.7; }

.mlcon__channels, .mlcon__info { display: grid; gap: 14px; }
.mlcon__channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mlcon__info { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); margin-top: 14px; }

.mlcon__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 26px 26px 24px;
  border-radius: 12px;
  background: #fff;
  color: var(--mlcon-text);
  text-decoration: none;
}
.mlcon__card--link { transition: transform .25s ease, box-shadow .25s ease; }
.mlcon__card--link:hover, .mlcon__card--link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(29, 42, 85, .35);
  color: var(--mlcon-text);
  text-decoration: none;
}
.mlcon__card--link::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 24px;
  width: 9px;
  height: 9px;
  border-top: 1.6px solid #9aa3b2;
  border-right: 1.6px solid #9aa3b2;
  transform: rotate(45deg);
  transition: border-color .2s ease, transform .2s ease;
}
.mlcon__card--link:hover::after { border-color: var(--mlcon-ink); transform: translateX(2px) rotate(45deg); }
.mlcon__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #f1f3f7;
  color: var(--mlcon-ink);
}
.mlcon__ico svg { width: 21px; height: 21px; }
.mlcon__ico--wa { background: #e7f7ee; color: #1a9e55; }
.mlcon__label { margin-bottom: 6px; color: var(--mlcon-muted); font-size: 11px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; }
.mlcon__value { color: var(--mlcon-ink); font-size: clamp(19px, 1.6vw, 23px); font-weight: 400; letter-spacing: -.2px; overflow-wrap: anywhere; }
.mlcon__hint { margin-top: 6px; color: var(--mlcon-muted); font-size: 13px; line-height: 1.5; }
.mlcon__address { margin: 2px 0 0; color: var(--mlcon-text); font-size: 15px; font-style: normal; line-height: 1.6; }
.mlcon__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--mlcon-ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.mlcon__more:hover { color: var(--mlcon-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.mlcon__more svg { width: 15px; height: 15px; }

.mlcon__hours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; width: 100%; margin-top: 4px; }
.mlcon__season-name { display: block; margin-bottom: 8px; color: var(--mlcon-ink); font-size: 14px; font-weight: 500; }
.mlcon__hours dl { margin: 0; }
.mlcon__hours dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #eef0f3; font-size: 14px; }
.mlcon__hours dl > div:last-child { border-bottom: 0; }
.mlcon__hours dt { color: var(--mlcon-muted); font-weight: 400; }
.mlcon__hours dd { margin: 0; color: var(--mlcon-text); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Bloque del formulario */
.mlcon__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 40px;
  margin-top: 14px;
  padding: 34px;
  border-radius: 12px;
  background: #fff;
}
.mlcon__h2 { margin: 0 0 10px; color: var(--mlcon-ink); font-size: clamp(22px, 2vw, 28px); font-weight: 300; line-height: 1.25; text-transform: none; }
.mlcon__form-aside p { margin: 0; color: var(--mlcon-muted); font-size: 14px; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Formulario (.mlcf)
   -------------------------------------------------------------------------- */
.mlcf { width: 100%; }
.mlcf form { margin: 0; }
.mlcf__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.mlcf__field { min-width: 0; }
.mlcf__field--full { grid-column: 1 / -1; }
.mlcf__label { display: block; margin: 0 0 7px; color: var(--mlcon-text); font-size: 13px; font-weight: 500; text-align: left; }
.mlcf__opt { margin-left: 4px; color: #8a93a3; font-size: 12px; font-weight: 400; }
.mlcf__req { color: #c0392b; }
.mlcf__control {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  background: #fff;
  color: var(--mlcon-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.mlcf__control::placeholder { color: #9aa3b2; }
.mlcf__control:focus { border-color: var(--mlcon-ink); outline: none; box-shadow: 0 0 0 3px rgba(29, 42, 85, .12); }
select.mlcf__control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
textarea.mlcf__control { min-height: 150px; resize: vertical; }

.mlcf__file { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; margin: 0; padding: 6px; border: 1px dashed #c9d0da; border-radius: 8px; cursor: pointer; }
.mlcf__file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mlcf__file:focus-within { border-color: var(--mlcon-ink); box-shadow: 0 0 0 3px rgba(29, 42, 85, .12); }
.mlcf__file-btn { flex: 0 0 auto; padding: 8px 14px; border-radius: 6px; background: #f1f3f7; color: var(--mlcon-ink); font-size: 13px; font-weight: 500; }
.mlcf__file-name { min-width: 0; overflow: hidden; color: var(--mlcon-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.mlcf__gdpr { font-size: 13px; color: var(--mlcon-muted); }
.mlcf__gdpr label { font-size: 13px; line-height: 1.5; text-align: left; }
.mlcf__extra:empty { display: none; }
.mlcf__extra .form-group { margin: 0; }

.mlcf__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 22px; }
.mlcf__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mlcf__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: 8px;
  background: var(--mlcon-ink);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease;
}
.mlcf__submit:hover, .mlcf__submit:focus-visible { background: var(--mlcon-ink-2); }
.mlcf__submit svg { width: 16px; height: 16px; }
.mlcf__note { flex: 1 0 100%; margin: 0; color: var(--mlcon-muted); font-size: 12px; line-height: 1.6; }

.mlcf__alert { margin-bottom: 18px; padding: 14px 18px; border-radius: 8px; font-size: 14px; }
.mlcf__alert ul { margin: 0; padding: 0; list-style: none; }
.mlcf__alert--ok { background: #e9f7ef; color: #1e6b41; }
.mlcf__alert--error { background: #fdecea; color: #a12a1f; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .mlcon__channels { grid-template-columns: 1fr; }
  .mlcon__info { grid-template-columns: 1fr; }
  .mlcon__form { grid-template-columns: 1fr; gap: 20px; padding: 26px 22px; }
}
@media (max-width: 575px) {
  body#contact #wrapper .container-fluid #left-column { padding-top: 2rem; padding-bottom: 3rem; }
  .mlcon__card { padding: 22px 20px 20px; }
  .mlcon__hours { grid-template-columns: 1fr; }
  .mlcf__fields { grid-template-columns: 1fr; }
  .mlcf__foot { justify-content: stretch; }
  .mlcf__submit { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mlcon__card--link, .mlcon__card--link::after { transition: none; }
}

/* 2026-10-16 (v2): columna del formulario en gris, como el formulario de dirección / registro
   (fondo #f7f7f9, campos blancos con borde #e9ecef; columna de texto en blanco) */
.mlcon__form { gap: 0; padding: 0; overflow: hidden; }
.mlcon__form-aside { padding: 38px 34px; }
.mlcon__form-main { padding: 38px clamp(24px, 3vw, 44px) 34px; background: #f7f7f9; }
.mlcon__form .mlcf__control { border-color: #e9ecef; }
.mlcon__form .mlcf__file { border-color: #dbe1eb; background: #fff; }
@media (max-width: 991px) {
  .mlcon__form { padding: 0; }
  .mlcon__form-aside { padding: 26px 22px 22px; }
  .mlcon__form-main { padding: 24px 22px 26px; }
}

/* 2026-10-16 (v3): formulario compacto dentro del modal de contacto de la cabecera (#contact-modal, plantilla de PROD) */
#contact-modal .contact-contact-section,
#contact-modal .contact-form-section { height: auto !important; max-height: none !important; overflow: visible !important; align-self: stretch; }
#contact-modal .mlcf__fields { gap: 10px 12px; }
#contact-modal .mlcf__label { margin-bottom: 4px; font-size: 12px; }
#contact-modal .mlcf__control { min-height: 38px; padding: 7px 12px; font-size: 13px; }
#contact-modal textarea.mlcf__control { min-height: 76px; height: 76px; }
#contact-modal .mlcf__file { min-height: 38px; padding: 3px; }
#contact-modal .mlcf__file-btn { padding: 6px 12px; font-size: 12px; }
#contact-modal .mlcf__gdpr, #contact-modal .mlcf__gdpr label { font-size: 12px; }
#contact-modal .mlcf__extra .form-group { margin: 2px 0 0; }
#contact-modal .mlcf__foot { margin-top: 10px; }
#contact-modal .mlcf__submit { padding: 11px 20px; }
@media (max-width: 575px) {
  #contact-modal .mlcf__control { font-size: 16px; } /* evita el zoom de iOS */
}
/* la rejilla del modal tiene 18 filas fijas (las tarjetas de abajo ocupan 9): filas automáticas para que el formulario quepa */
#contact-modal .contact-modal-content { grid-template-rows: none !important; grid-auto-rows: auto !important; }
#contact-modal .contact-modal-content > * { grid-row: auto !important; }
/* en el modal no se ofrece adjunto (sigue en la página de contacto) */
#contact-modal .mlcf__field:has(.mlcf__file) { display: none; }
/* móvil: el modal tenía 2 columnas también en móvil; con el formulario, una sola columna */
@media (max-width: 767px) {
  #contact-modal .contact-modal-content { grid-template-columns: minmax(0, 1fr) !important; }
  #contact-modal .contact-modal-content > * { grid-column: 1 / -1 !important; }
}
