/* ==========================================================================
   Componentes reutilizables (BEM): títulos, botones, banner, tarjeta de habitación,
   motor de reservas, características, slider, galería, opiniones y formulario.
   ========================================================================== */

/* ---- Títulos de sección --------------------------------------------------- */
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h-section);
  font-weight: var(--fw-medium);
  line-height: 96px;
  color: var(--color-heading);
  text-align: center;
}

.section-title--tall {
  line-height: 120px;
}

.prose-center {
  text-align: center;
}

@media (max-width: 767px) {
  .section-title { line-height: 73.6px; }
  .section-title--tall { line-height: 1; margin-bottom: 0.5em; }
}

/* ---- Botones -------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px 20px;
  border: 0;
  border-radius: 0;
  background-color: var(--color-peach);
  font-family: var(--font-text);
  font-size: var(--fs-text);
  font-weight: var(--fw-light);
  line-height: 34px;
  color: var(--color-text-soft);
  transition: background-color var(--t-fast), padding var(--t-fast);
}

.button:hover {
  background-color: var(--color-white); /* .boton-color:hover de la web */
}

/* Flecha que aparece al pasar el ratón (icono "5" de ETmodules en Divi) */
.button--arrow .icon {
  width: 0;
  opacity: 0;
  font-size: 1.1em;
  transition: width var(--t-fast), opacity var(--t-fast);
}

.button--arrow:hover {
  padding-left: 0.7em;
  padding-right: 0.7em;
}

.button--arrow:hover .icon {
  width: 1.1em;
  margin-left: 0.4em;
  opacity: 1;
}

/* Icono a la izquierda («Ver habitaciones», teléfono, email) */
.button--icon-left {
  position: relative;
  padding: 6px 20px 6px 44px;
}

.button--icon-left .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  font-size: 1.1em;
  transform: translateY(-50%);
}

.button--outline {
  padding: 4.8px 30px;
  border: 1px solid var(--color-border-button);
  font-family: var(--font-ui);
  font-size: var(--fs-ui);
  line-height: 27.2px;
}

.link-more {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--fs-menu);
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-text-soft);
  transition: opacity var(--t-menu);
}

.link-more:hover {
  opacity: 0.7;
}

/* ---- Banner de página interior ---------------------------------------------- */
.page-banner {
  position: relative;
  display: flex;
  align-items: flex-start;
  height: var(--banner-h);
  padding-top: 115px;
  overflow: hidden;
  isolation: isolate;
}

.page-banner__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner--veiled::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-cream-80);
}

.page-banner__title {
  font-family: var(--font-display);
  font-size: var(--fs-h-banner);
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-heading);
}

.page-banner--plain .page-banner__title {
  color: var(--color-white);
}

.page-banner__subtitle {
  font-family: var(--font-text);
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-light);
  line-height: 1.1;
  color: var(--color-text-soft);
}

@media (max-width: 767px) {
  /* Tres variantes medidas en la web a 375 px (ver BannerViewModel.MobileVariant) */
  .page-banner {
    height: 412px;
    padding-top: 141px;
    text-align: center;
  }

  /* compact: título multi-view de Divi (<p> centrado, 50 px con interlineado 23,8 px) */
  .page-banner--m-compact .page-banner__title {
    padding-bottom: 0;
    line-height: 23.8px;
  }

  /* tall: fichas «doble» (sin multi-view): h1 de 50/50 a la izquierda y 489 px de alto */
  .page-banner--m-tall {
    height: var(--banner-h-mobile);
    padding-top: 182px;
  }

  .page-banner--m-tall .page-banner__title {
    text-align: left;
  }

  .page-banner--m-tall .page-banner__subtitle {
    margin-top: 38px;
  }

  /* compact-37 (contacto, instalaciones) y room-37 (fichas individuales): título de 37 px más abajo */
  .page-banner--m-compact-37,
  .page-banner--m-room-37 {
    padding-top: 182px;
  }

  .page-banner--m-compact-37 .page-banner__title,
  .page-banner--m-room-37 .page-banner__title {
    padding-bottom: 0;
    font-size: 2.3125rem; /* 37 px */
    line-height: 23.8px;
  }

  .page-banner--m-compact-37 .page-banner__subtitle {
    margin-top: 39px;
  }

  .page-banner--m-room-37 .page-banner__title {
    line-height: 37px;
  }

  .page-banner--m-room-37 .page-banner__subtitle {
    margin-top: 41px;
  }

  /* legal: título blanco de 48 px centrado */
  .page-banner--m-legal .page-banner__title {
    padding-bottom: 0;
    font-size: 3rem;
    line-height: 1;
  }
}

/* ---- Tarjeta de habitación (foto sobre caja crema) ------------------------- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 27px;
}

.room-card {
  position: relative;
  padding-top: 121px;
  padding-bottom: 30px;
}

.room-card__media {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 340px;
}

.room-card--wide .room-card__media {
  left: -40px;
  width: calc(100% + 30px);
}

.room-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-card__box {
  position: relative;
  min-height: 558px;
  padding: 252px 43px 90px;
  background: var(--color-cream);
}

.room-card--mirrored .room-card__box {
  left: -40px;
}

.room-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h-card);
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-heading);
}

.room-card__capacity {
  margin-top: 0.5em;
  font-family: var(--font-text);
  font-size: var(--fs-text);
  font-weight: var(--fw-light);
  line-height: 1;
  color: var(--color-terracotta);
}

.room-card__body {
  margin-top: 0.75em;
  font-family: var(--font-text);
  font-size: var(--fs-text);
  font-weight: var(--fw-light);
  line-height: 26px;
  color: var(--color-text-soft);
}

.room-card__body p + p {
  margin-top: 1em;
}

.room-card__button {
  position: absolute;
  left: 46px;
  bottom: 27px;
}

/* Móvil/tablet (medido a 375): la tarjeta ocupa el 90 % del ancho (sale 6,25 % del contenedor del 80 %),
   foto con su proporción y 20 px de margen; la caja crema empieza 265 px por encima del final de la foto + 46. */
@media (max-width: 980px) {
  .room-grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
    margin-inline: -6.25%;
  }

  .room-card {
    padding: 0 0 20px;
  }

  .room-card__media,
  .room-card--wide .room-card__media {
    position: relative;
    left: 0;
    width: auto;
    height: auto;
    margin: 0 21px 46px 20px;
  }

  .room-card__img {
    height: auto;
  }

  .room-card__box,
  .room-card--mirrored .room-card__box {
    left: 0;
    min-height: 604px;
    margin-top: -265px;
    padding: 252px 20px 87px;
  }

  /* Tablet: caja más baja (532 px medidos a 768) */
  @media (min-width: 768px) {
    .room-card__box,
    .room-card--mirrored .room-card__box {
      min-height: 532px;
    }
  }

  /* En la web, las tarjetas de la columna derecha (2.ª, 4.ª) tienen la caja 30 px más baja */
  .room-card--mirrored .room-card__box {
    min-height: 574px;
  }

  .room-card__button {
    left: 27%;
  }
}

/* ---- Motor de reservas (paquete Softme.MotorReservas: <motor-softme class="booking">) ----
   Mismo aspecto que el plugin MotorSoftme de la web original: etiqueta encima, campo con borde dorado
   y el icono en una casilla separada por una línea. El paquete no trae estilos propios. */
.booking {
  position: relative;
  z-index: 2;
  padding: 27px 52px; /* a 1920 px: campos de 450 + 450 y botón de 300, como la original */
  background: var(--color-cream);
}

.booking .motorsoftme__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
  align-items: end;
  gap: 6px;
}

.booking .motorsoftme__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 45px; /* el icono ocupa el 10 % del campo en el plugin */
}

.booking .motorsoftme__label {
  grid-column: 1 / -1;
  display: block;
  font-family: var(--font-base);
  font-size: 1.05rem; /* 16.8 px */
  font-weight: var(--fw-medium);
  line-height: 23.8px;
  color: var(--color-gold);
  text-transform: uppercase;
}

.booking .motorsoftme__input {
  box-sizing: border-box;
  min-width: 0;
  height: 43px; /* como el botón */
  padding: 0 10px;
  border: 1px solid var(--color-gold);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-base);
  font-size: var(--fs-small);
  line-height: 17px;
  color: var(--color-gold);
  text-transform: uppercase;
}

.booking .motorsoftme__input--fechas {
  cursor: pointer;
}

.booking .motorsoftme__input::placeholder {
  color: var(--color-gold);
  opacity: 1;
}

.booking .motorsoftme__icon {
  box-sizing: border-box;
  width: 100%;
  height: 43px;
  padding: 11px 12px;
  border: 1px solid var(--color-gold);
  border-left: 0;
  color: var(--color-gold);
  pointer-events: none;
}

.booking .motorsoftme__submit {
  width: 100%;
  height: 43px;
  padding: 1px 6px;
  border: 1px solid var(--color-gold);
  border-radius: 0;
  background: var(--color-white);
  font-family: var(--font-base);
  font-size: var(--fs-small);
  color: var(--color-gold);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.booking .motorsoftme__submit:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-white);
}

@media (max-width: 980px) {
  .booking {
    padding: 0;
    background: none;
  }

  .booking .motorsoftme__form {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .booking .motorsoftme__field {
    grid-template-columns: minmax(0, 1fr) 31px;
  }

  .booking .motorsoftme__label {
    font-size: var(--fs-small);
  }

  /* Campos de 31 px de alto, como en la web a 375 px */
  .booking .motorsoftme__input {
    height: 31px;
    font-size: 0.7rem; /* 11.2 px */
  }

  .booking .motorsoftme__icon {
    height: 31px;
    padding: 8px;
  }

  .booking .motorsoftme__submit {
    height: 29px;
    padding: 6px 0;
    font-size: 0.7rem;
  }
}

/* Calendario del motor (DOM de Flatpickr, montado en <body>): tema dorado, el mismo que Hotel Palmeral */
.flatpickr-calendar .flatpickr-day {
  height: 50px;
  max-width: none;
  line-height: normal;
  color: #404848;
}

/* Con un mes (móvil) el calendario toma el ancho del campo (AjustarAnchoCalendario): la rejilla de días,
   que el CSS base fija a 308 px, se adapta a ese ancho como en la original. */
.flatpickr-calendar:not(.multiMonth) .flatpickr-rContainer,
.flatpickr-calendar:not(.multiMonth) .flatpickr-days,
.flatpickr-calendar:not(.multiMonth) .dayContainer,
.flatpickr-calendar:not(.multiMonth) .flatpickr-weekdaycontainer {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.flatpickr-calendar:not(.multiMonth) .flatpickr-day {
  flex-basis: calc(100% / 7);
  width: calc(100% / 7);
  max-width: calc(100% / 7);
}

.flatpickr-calendar .flatpickr-day.today {
  border-color: var(--color-gold-light);
}

.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.endRange {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-white);
}

.flatpickr-calendar .flatpickr-day.startRange + .endRange:not(:nth-child(7n+1)) {
  box-shadow: -10px 0 0 var(--color-gold-light);
}

.dia-con-precio,
.dia-con-x {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 2px 0;
}

.dia-con-precio .numero-dia,
.dia-con-x .numero-dia {
  font-size: 0.7em;
  font-weight: 800;
}

.dia-con-precio .precio,
.dia-con-x .x {
  font-size: 1em;
  color: var(--color-text-soft);
}

.dia-con-precio .noches {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.7em;
  color: var(--color-text-soft);
}

.dia-con-precio .imageLuna2 {
  width: 10px;
  height: 10px;
  margin-left: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23707070' d='M12.3 22A10 10 0 0 1 9.4 2.4a1 1 0 0 1 1.2 1.3 8 8 0 0 0 9.7 9.7 1 1 0 0 1 1.3 1.2A10 10 0 0 1 12.3 22Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.flatpickr-day.selected .precio,
.flatpickr-day.startRange .precio,
.flatpickr-day.endRange .precio,
.flatpickr-day.selected .noches,
.flatpickr-day.startRange .noches,
.flatpickr-day.endRange .noches {
  color: var(--color-white);
}

.flatpickr-calendar.cargando .dayContainer {
  opacity: 0.6;
}
/* ---- Fila de iconos con etiqueta ------------------------------------------ */
.features {
  display: grid;
  grid-template-columns: repeat(var(--features), minmax(0, 1fr));
  gap: 60px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.features__icon {
  display: block;
  margin: 0 auto 30px;
  font-size: 96px;
  color: var(--color-icon);
}

.features__label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-heading);
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
  }
}

/* ---- Slider (instalaciones) ------------------------------------------------ */
.slider {
  position: relative;
  height: 478px;
  overflow: hidden;
}

.slider__track {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.slider--controls .slider__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.slider--controls .slider__track::-webkit-scrollbar {
  display: none;
}

.slider__slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}

.slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-white);
  font-size: 48px;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s, left 0.3s, right 0.3s;
}

.slider__arrow--prev { left: -22px; }
.slider__arrow--next { right: -22px; }

.slider:hover .slider__arrow,
.slider__arrow:focus-visible {
  opacity: 1;
}

.slider:hover .slider__arrow--prev { left: 22px; }
.slider:hover .slider__arrow--next { right: 22px; }

.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 37px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgb(255 255 255 / 0.5);
}

.slider__dot[aria-current="true"] {
  background: var(--color-white);
}

@media (max-width: 767px) {
  .slider { height: 300px; }
}

/* ---- Galería en mosaico (Modula) ------------------------------------------- */
.gallery-wrap {
  container-type: inline-size;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: calc((100cqw - 110px) / 12);
  gap: var(--gallery-gap);
}

.gallery__item {
  grid-column: span var(--cols);
  grid-row: span var(--rows);
  display: block;
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s linear;
}

.gallery__item:hover .gallery__img,
.gallery__item:focus-visible .gallery__img {
  opacity: 0.5;
}

/* ---- Opiniones --------------------------------------------------------------- */
.review {
  position: relative;
  padding: 70px 30px 50px; /* 30 + 40 px de los h1 vacíos de Divi antes del título */
  text-align: center;
}

.review__quote {
  position: absolute;
  top: -36px;
  left: 50%;
  font-size: 71px;
  color: var(--color-sand);
  transform: translateX(-50%);
}

.review__title {
  padding-bottom: 10px;
  font-family: var(--font-text);
  font-size: var(--fs-quote-title);
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-heading);
}

.review__body p:not(.review__title) {
  font-family: var(--font-text);
  font-size: var(--fs-text);
  font-weight: var(--fw-light);
  line-height: 30px;
  color: var(--color-text);
}

.review__author {
  margin-top: 32px;
  font-family: var(--font-text);
  font-size: var(--fs-text);
  font-weight: var(--fw-light);
  line-height: 1;
  color: var(--color-terracotta);
}

/* ---- Aviso de cookies (medido en la web: 500 px, Open Sans 15/23.8, botón #baac8b) ---- */
html.cookie-open {
  overflow: hidden;
}

.cookie-banner {
  width: 500px;
  max-width: calc(100vw - 20px);
  padding: 30px 45px;
  border: 0;
  border-radius: 3.2px;
  background: var(--color-white);
  font-family: var(--font-base);
  font-size: 0.9375rem;
  line-height: 23.8px;
  color: var(--color-heading);
}

.cookie-banner::backdrop {
  background: rgb(0 0 0 / 0.5);
}

.cookie-banner__text a {
  color: var(--color-cookie);
}

.cookie-banner__actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.cookie-banner__accept {
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  background: var(--color-cookie);
  font-family: var(--font-base);
  font-size: 0.8125rem;
  color: var(--color-white);
  transition: opacity var(--t-fast);
}

.cookie-banner__accept:hover {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .cookie-banner { padding: 30px 25px; }
}

/* ---- Aviso de cierre por temporada (<dialog>, como el de Hotel Palmeral) ---- */
html.notice-open {
  overflow: hidden;
}

.notice {
  position: fixed;
  width: 560px;
  max-width: calc(100vw - 20px);
  padding: 50px 45px 40px;
  border: 0;
  border-top: 4px solid var(--color-gold);
  border-radius: 3.2px;
  background: var(--color-white);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: var(--fw-light);
  line-height: 1.6;
  color: var(--color-heading);
  text-align: center;
}

.notice::backdrop {
  background: rgb(0 0 0 / 0.5);
}

.notice__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-heading);
  font-size: 18px;
  cursor: pointer;
}

.notice__title {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: var(--fw-medium);
  line-height: 1.1;
  color: var(--color-heading);
}

.notice p + p {
  margin-top: 12px;
}

.notice a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice__actions {
  margin-top: 28px;
}

/* Mismo botón que el del motor de reservas */
.notice__button {
  min-width: 160px;
  height: 43px;
  padding: 1px 20px;
  border: 1px solid var(--color-gold);
  border-radius: 0;
  background: var(--color-white);
  font-family: var(--font-base);
  font-size: var(--fs-small);
  color: var(--color-gold);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.notice__button:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-white);
}

@media (max-width: 767px) {
  .notice {
    padding: 45px 22px 30px;
    font-size: 1rem;
  }

  .notice__title {
    font-size: 1.75rem;
  }
}

/* ---- Sección «Consúltanos» y formulario ------------------------------------- */
.ask {
  padding: 30px 0 3px;
  background: var(--color-sand);
}

.ask__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  align-items: start;
  padding-block: 27px;
}

.ask__icon {
  display: flex;
  justify-content: center;
  font-size: 45px;
  color: #0a0505;
}

.ask__title {
  margin-left: -100px;
  font-family: var(--font-display);
  font-size: var(--fs-h-ask);
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-heading);
}

.contact-form__field {
  border-bottom: 1px solid #c4c4c4;
}

.contact-form__field + .contact-form__field {
  margin-top: 15px;
}

.contact-form__input {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  background: transparent;
  font-family: var(--font-text);
  font-size: var(--fs-small);
  font-weight: var(--fw-light);
  line-height: normal;
  color: var(--color-placeholder);
}

.contact-form__input::placeholder {
  color: var(--color-placeholder);
  opacity: 1;
}

.contact-form__textarea {
  height: 150px;
  resize: vertical;
}

.contact-form__actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.contact-form__privacy {
  font-family: var(--font-text);
  font-size: 0.8125rem; /* 13 px */
  font-weight: var(--fw-light);
  line-height: 1.5;
  color: var(--color-text-soft);
}

.contact-form__privacy a {
  text-decoration: underline;
}

.contact-form__submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

/* Mensaje de resultado (éxito / error) */
.contact-form__status:empty {
  display: none;
}

.contact-form__status {
  margin-bottom: 15px;
  padding: 10px 16px;
  font-family: var(--font-text);
  font-size: var(--fs-ui);
  font-weight: var(--fw-light);
  border-left: 3px solid var(--color-gold);
  background: rgb(255 255 255 / 0.6);
  color: var(--color-heading);
}

.contact-form__status.is-error {
  border-left-color: #b3261e;
}

.contact-form__error {
  display: block;
  padding: 4px 16px 0;
  font-family: var(--font-text);
  font-size: 0.8125rem;
  color: #b3261e;
}

.contact-form__error:empty {
  display: none;
}

.contact-form__input.input-validation-error,
.contact-form__input[aria-invalid="true"] {
  background: rgb(179 38 30 / 0.05);
}

/* Honeypot: fuera de pantalla (no display:none, que algunos robots detectan) */
.contact-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .ask__grid {
    grid-template-columns: 1fr;
    row-gap: 29px;
    padding-block: 30px;
  }

  .ask__title {
    margin-left: 0;
    padding-bottom: 24px; /* módulo de 94 px en la web */
  }

  .ask__form {
    margin-top: 40px;
  }

  .contact-form__actions {
    margin-top: 33px;
  }
}

/* Tablet (medido a 768): icono y título en una fila (el título se mete 100 px a la izquierda), formulario debajo */
@media (min-width: 768px) and (max-width: 980px) {
  .ask__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 0;
  }

  .ask__title {
    margin: 14px 0 0 -100px;
    padding-bottom: 0;
  }

  .ask__form {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .contact-form__actions {
    margin-top: 30px;
  }
}
