/* Touch layout: keep the desktop design and the existing content structure. */
@media (max-width: 960px) {
  footer.site-footer {
    padding-top: 0;
    margin-top: 0;
  }
  footer.site-footer > div {
    position: static;
  }
}
@media (max-width: 960px) {
  body { -webkit-text-size-adjust: 100%; }
  .site-header .container,
  .site-nav .container { width: calc(100% - 40px); }
  .site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 16px;
    padding-block: 12px;
  }
  .site-header__logo { grid-column: 1; grid-row: 1 / 3; order: 0; position: static; transform: none; }
  .site-header__logo img { max-height: 58px; margin: 0; }
  .site-header__phone { grid-column: 2; grid-row: 1; justify-content: flex-end; font-size: 13px; }
  .site-header__phone-contact { display: flex; align-items: center; gap: 8px; }
  .site-header__phone-contact > i { color: #2f4c70; transform: none; text-shadow: none; }
  .site-header__phone-link { display: inline-flex; align-items: center; min-height: 44px; }
  .site-header .slowcadiz-social { display: none; }
  .site-header__location { grid-column: 2; grid-row: 2; text-align: right; font-size: 12px; }
  .site-nav { padding-block: 4px; }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 0;
    font: 500 14px/1.4 var(--sistema-sans, sans-serif);
    text-transform: none;
    letter-spacing: 0;
  }
  .menu-toggle .menu-toggle__label {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
  }
  .site-nav .menu-toggle:hover,
  .site-nav .menu-toggle:focus { color: #3f3833; background: transparent; box-shadow: none; }
  .main-menu { display: none; flex-direction: column; width: 100%; gap: 0; padding-block: 8px; }
  .main-menu.is-open { display: flex; }
  .main-menu li { width: 100%; border-top: 1px solid #e7e2d9; }
  .site-nav .main-menu a { display: flex; align-items: center; min-height: 48px; padding: 12px 0; font-size: 14px; }
  .nav-toggle, .search-toggle { display: none !important; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 0 24px; }
  .site-footer .container { width: calc(100% - 40px); }
  .site-footer__list a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: 15px; }
  .site-footer__list li { margin: 0; }
  .site-footer__bottom { padding-block: 20px; }
  .site-footer__copyright { font-size: 12px; line-height: 1.7; }
  .site-footer .slowcadiz-social__list { flex-wrap: wrap; gap: 8px; }
  .site-footer .slowcadiz-social__link { min-width: 44px; min-height: 44px; }

  /* Full-width backgrounds, readable text and natural section heights. */
  body .slowcadiz-hero-slider,
  body .slowcadiz-hero {
    height: auto;
    max-height: none;
    min-height: 0;
  }
  body .slowcadiz-hero-slider__slide,
  body .slowcadiz-hero .slowcadiz-hero-slider__slide {
    height: auto;
    min-height: 520px;
    padding: 44px 20px;
    box-sizing: border-box;
    align-items: center;
  }
  body .slowcadiz-hero-slider > .slowcadiz-hero-slider__viewport .slowcadiz-hero-slider__slide {
    min-height: calc(100svh - 146px);
  }
  body .slowcadiz-hero-slider__content,
  body .slowcadiz-hero.right .slowcadiz-hero-slider__content,
  body .slowcadiz-hero.left .slowcadiz-hero-slider__content {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 24px 20px;
    box-sizing: border-box;
    border-radius: 12px;
    color: #3f3833;
    background: rgb(255 253 248 / 92%);
    box-shadow: 0 8px 28px rgb(30 40 50 / 10%);
  }
  body .slowcadiz-hero-slider__content :is(h1, h2.hero-title),
  body .slowcadiz-hero.box-gold h2.hero-title,
  body .slowcadiz-hero.box-silver h2.hero-title {
    color: #3f3833 !important;
    font-size: clamp(28px, 7.5vw, 38px);
    line-height: 1.15;
    text-shadow: none !important;
    margin-bottom: 16px;
    overflow-wrap: normal;
  }
  body .slowcadiz-hero-slider__content :is(p, .slowcadiz-hero-iflex-text),
  body .slowcadiz-hero.box-gold .slowcadiz-hero-iflex-text,
  body .slowcadiz-hero.box-silver .slowcadiz-hero-iflex-text,
  body .slowcadiz-hero.box-gold p.hero-subtitle,
  body .slowcadiz-hero.box-silver p.hero-subtitle {
    color: #49443f;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    opacity: 1;
  }
  body .slowcadiz-hero-slider__flex { flex-direction: column; gap: 24px; margin-top: 20px; width: 100%; }
  body .slowcadiz-hero-slider__flexitem { width: 100%; min-width: 0; }
  body .slowcadiz-cta { margin-top: 20px !important; }
  body .slowcadiz-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    border-radius: 6px;
  }
  body .slowcadiz-hero.box-regular .slowcadiz-hero-slider__flexitem {
    padding-top: 20px;
    border-top: 1px solid #d7cbbd;
  }
  body .slowcadiz-hero.box-regular .slowcadiz-cta a { padding: 10px 0; }
  body .slowcadiz-hero.box-regular .slowcadiz-cta a::before,
  body .slowcadiz-hero.box-regular .slowcadiz-cta a::after { content: none; }
  body .slowcadiz-container { padding: 40px 0; }
  body .slowcadiz-content { width: calc(100% - 40px); box-sizing: border-box; }
  body .slowcadiz-container .slowcadiz-content { padding: 0; }
  body .slowcadiz-container.bg-gold-silver .slowcadiz-content {
    padding: 24px 20px;
    border: 1px solid #e7e2d9;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgb(44 52 59 / 7%);
  }
  body h2.wp-block-heading,
  body #site-content .scroll-line-animation > h2 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.2;
    text-shadow: none;
    margin-bottom: 24px;
  }
  body h2.wp-block-heading.bg-white {
    padding: 20px 16px;
    margin-bottom: 28px;
    border-color: #e7e2d9;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgb(44 52 59 / 7%);
  }
  body .slowcadiz-content :is(p, h3) { font-size: 17px; line-height: 1.65; }
  body .slowcadiz-content h2,
  body #site-content .scroll-line-animation > h2 { color: #75614e; }
  body .bg-gold-silver .wp-block-columns { display: grid; gap: 28px; margin: 28px 0 0; }
  body .bg-gold-silver .wp-block-column { display: grid; grid-template-columns: 88px minmax(0,1fr); column-gap: 16px; align-items: start; }
  body .bg-gold-silver .wp-block-column figure { grid-row: 1 / 3; margin: 0; }
  body .bg-gold-silver .wp-block-column figure::after { content: none; }
  body .bg-gold-silver .wp-block-column figure img { width: 88px; height: 100px; object-fit: cover; border-radius: 8px; }
  body .bg-gold-silver .wp-block-column h4 { margin: 0 0 8px; text-align: left; font-size: 18px; line-height: 1.3; }
  body .bg-gold-silver .wp-block-column p { margin: 0; text-align: left; font-size: 15px; line-height: 1.6; }
  body ul.wc-block-product-categories-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
  }
  body ul.wc-block-product-categories-list > li { min-width: 0; margin: 0; }
  body ul.wc-block-product-categories-list a { height: 100%; border: 1px solid #e1d6c9; border-radius: 10px; box-shadow: 0 3px 10px rgb(44 52 59 / 6%); }
  body .wc-block-product-categories-list--has-images .wc-block-product-categories-list-item__image { display: block; width: 100%; max-width: 100%; }
  body .wc-block-product-categories-list--has-images .wc-block-product-categories-list-item__image img { display: block; width: 100%; max-width: 100%; aspect-ratio: 4/3; height: auto; object-fit: cover; }
  body .wc-block-product-categories-list-item__name { display: flex; align-items: center; justify-content: center; flex: 1; padding: 12px 8px; font-size: 15px; line-height: 1.35; }

  /* The desktop scroll illustration becomes a sequence of readable steps. */
  body #site-content .scroll-line-animation { min-height: 0; padding: 40px 20px; }
  body #site-content .scroll-line-animation > h2 { width: 100%; padding: 0; border: 0; box-shadow: none; background: transparent; }
  body #site-content .scroll-line-animation-container { display: grid; gap: 24px; transform: none; }
  body #site-content .scroll-line-animation .scroll-line-animation-row-collapse { display: none; }
  body #site-content .scroll-line-animation .scroll-line-animation-row {
    display: block;
    height: auto;
    max-height: none;
    transform: none;
    overflow: visible;
  }
  body #site-content .scroll-line-animation :is(.scroll-line-animation-left, .scroll-line-animation-right):empty { display: none; }
  body #site-content .scroll-line-animation :is(.scroll-line-animation-left, .scroll-line-animation-right) { width: 100%; }
  body #site-content .scroll-line-animation .scroll-line-animation-row-content {
    position: static;
    width: 100%;
    opacity: 1;
    transform: none;
    animation: none;
    border: 1px solid #e7e2d9;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgb(44 52 59 / 6%);
  }
  body #site-content .scroll-line-animation :is(.scroll-line-animation-row, .scroll-line-animation-left, .scroll-line-animation-right)::before,
  body #site-content .scroll-line-animation :is(.scroll-line-animation-row, .scroll-line-animation-left, .scroll-line-animation-right)::after { content: none; }
  body #site-content .scroll-line-animation-image { aspect-ratio: 16/9; }
  body #site-content .scroll-line-animation-text { padding: 20px; text-align: left; font-size: 16px; line-height: 1.65; }
  body #site-content .scroll-line-animation-text :is(h2,h3) { margin: 0 0 10px; font-size: 24px; }
  body #site-content .scroll-line-animation-text p { margin: 0; }
  body .seo-block .slowcadiz-content { text-align: left; }
  body .seo-block .slowcadiz-content p { margin-bottom: 20px; }

  /* Catalogue and reservation controls stay comfortably within the viewport. */
  body .sc-page { --espacio-pagina: 20px; }
  body .sc-hero { padding-block: 32px; }
  body .sc-hero :is(h1, .sc-title) { font-size: clamp(28px, 8vw, 38px); line-height: 1.15; }
  body .sc-page h1 { color: #3f3833 !important; text-shadow: none !important; }
  body .sc-page :is(h2,h3) { color: #3f3833; }
  body .sc-page .sc-eyebrow { color: #606c76; }
  body .wp-block-woocommerce-product-collection ul.wc-block-product-template__responsive { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  body .sc-experience__intro p { font-size: 17px; line-height: 1.65; }
  body .sc-experience .sc-experience__reservation { padding: 20px; }
  body .sc-experience .sc-experience__reservation p.price,
  body .sc-experience #wc-bookings-booking-form .wc-bookings-booking-cost strong { color: #2f4c70; }
  body .sc-experience #wc-bookings-booking-form .ui-datepicker td :is(a,span) { padding: 10px 0; min-height: 40px; box-sizing: border-box; }
  body .sc-experience #wc-bookings-booking-form .ui-datepicker :is(.ui-datepicker-prev,.ui-datepicker-next) { width: 44px; height: 44px; top: 4px; }
  body .sc-experience #wc-bookings-booking-form .block-picker li a { min-height: 48px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; font-size: 15px; }
  body :is(input, select, textarea) { max-width: 100%; font-size: 16px; }
  body :is(.sc-form, .woocommerce) :is(input[type=text], input[type=email], input[type=tel], input[type=number], select) { min-height: 48px; font-size: 16px; }
  body .sc-experience div.product form.cart .button { min-height: 50px; white-space: normal; }
  body .sc-experience__related .related.products ul.products li.product .price { padding-bottom: 24px; text-align: right; }
  body .sc-experience__related .related.products ul.products li.product .woocommerce-loop-product__title { overflow-wrap: normal; }
}
@media (max-width: 600px) {
  body .wp-block-woocommerce-product-collection ul.wc-block-product-template__responsive { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 360px) {
  body .bg-gold-silver .wp-block-column { grid-template-columns: minmax(0,1fr); }
  body .bg-gold-silver .wp-block-column figure { grid-row: auto; margin-bottom: 12px; }
  body .bg-gold-silver .wp-block-column figure img { width: 100%; height: 150px; }
  body .slowcadiz-hero-slider__slide,
  body .slowcadiz-hero .slowcadiz-hero-slider__slide { padding-inline: 16px; }
}
