/* CHE Alimentos — layout basado en Figma desktop 1920 / mobile 412 */

:root {
  --black: #000;
  --white: #fff;
  --grey: #c6c6c6;
  --input-bg: #fefffa;
  --input-border: #010118;
  --ticker-border: #8dc7d5;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-form: "Inter", system-ui, sans-serif;
  --font-ui: "Roboto", system-ui, sans-serif;
  --font-display: "Anton", "Impact", sans-serif;
  --font-legal: "Rubik", system-ui, sans-serif;
  --wrap-max: 1760px;
  --gutter: clamp(20px, 4vw, 80px);
  --header-pad-x: clamp(0px, 2vw, 36px);
  --shadow-card: 3px 3px 0.3px rgba(0, 0, 0, 0.43);
  --shadow-soft: 0 4px 2.4px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main {
  padding: 100px 0;
}

@media (max-width: 800px) {
  main {
    padding: 20px 0;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.35;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: calc(var(--wrap-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  min-height: 44px;
  max-width: 1920px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .site-header__inner {
    min-height: 72px;
  }
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 100%;
  min-height: 44px;
  padding: 7.5px;
  border-right: 1px solid var(--black);
  background: var(--white);
  cursor: pointer;
  color: inherit;
}

@media (min-width: 900px) {
  .icon-box {
    width: 72px;
    min-height: 72px;
    padding: 10px;
  }
}

.site-header__menu-btn {
  justify-self: start;
  border-right: 1px solid var(--black);
  border-top: none;
  border-bottom: none;
  border-left: none;
}

@media (min-width: 900px) {
  .site-header__menu-btn {
    border: 1px solid var(--black);
  }
}

.site-header__social {
  justify-self: end;
  display: flex;
  height: 100%;
}

.site-header__social .icon-box {
  border-left: none;
}

.site-header__social .icon-box:first-child {
  border-left: 1px solid var(--black);
}

.icon-flip {
  transform: scaleY(-1);
}

.icon-box__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  max-height: 100%;
}

.icon-box--labeled {
  padding: 3px 4px;
}

.icon-box__label {
  margin-top: 5px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: inherit;
  white-space: nowrap;
}

.site-header__logo {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

/* Logo SVG 444×197: tamaño explícito evita fallos con width/height auto + max-* */
.site-header__logo-img {
  --logo-w: 444;
  --logo-h: 197;
  --cap-w: min(280px, 64vw);
  --cap-h: 42px;
  width: min(var(--cap-w), calc(var(--cap-h) * var(--logo-w) / var(--logo-h)));
  height: calc(min(var(--cap-w), calc(var(--cap-h) * var(--logo-w) / var(--logo-h))) * var(--logo-h) / var(--logo-w));
  max-width: var(--cap-w);
  max-height: var(--cap-h);
}

@media (min-width: 901px) {
  .site-header__logo-img {
    --cap-w: min(320px, 44vw);
    --cap-h: 46px;
  }
}

@media (max-width: 800px) {
  .site-header__logo-img {
    --cap-w: min(216px, 70vw);
    --cap-h: 30px;
  }
}

/* Nav drawer */
.nav-drawer {
  position: fixed;
  inset: 44px 0 auto 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--black);
  padding: 16px 24px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

@media (min-width: 900px) {
  .nav-drawer {
    inset: 72px 0 auto 0;
  }
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 18px;
}

.nav-drawer__nav a:hover {
  text-decoration: underline;
}

/* ——— Marquee ——— */
.marquee {
  margin-top: clamp(12px, 2vw, 24px);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: clamp(14px, 2.8vw, 18px);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  overflow: hidden;
  height: clamp(48px, 12vw, 86px);
  display: flex;
  align-items: center;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee__content {
  display: flex;
  flex-shrink: 0;
  gap: clamp(40px, 10vw, 80px);
  padding: 0 20px;
  white-space: nowrap;
  align-items: center;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    justify-content: center;
    width: 100%;
  }
}

/* ——— About ——— */
.about {
  margin-top: clamp(24px, 4vw, 40px);
  background: var(--grey);
  border: 1px solid var(--black);
  box-shadow: 0 4px 1.9px rgba(0, 0, 0, 0.12);
}

.about__inner--desktop {
  display: none;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 12vw, 423px);
  gap: clamp(32px, 8vw, 106px);
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}

.about__inner--mobile {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 20px 20px;
  align-items: flex-start;
}

.about__mobile-heading {
  width: min(237px, 85vw);
  height: auto;
}

@media (min-width: 900px) {
  .about__inner--mobile {
    display: none;
  }

  .about__inner--desktop {
    display: flex;
  }
}

.about__left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  max-width: 280px;
}

.about__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about__title-line {
  display: block;
}

.about__underline {
  width: min(251px, 100%);
  height: auto;
  aspect-ratio: 251 / 40;
}

.about__right {
  flex: 1 1 280px;
  max-width: 615px;
  padding: 10px;
}

.about__text {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: normal;
}

/* ——— Carousel ——— */
.carousel {
  margin-top: clamp(24px, 4vw, 40px);
}

.carousel__viewport {
  position: relative;
  width: 100%;
  border: 1px solid var(--black);
  box-shadow: var(--shadow-card);
  aspect-ratio: 1760 / 744;
  max-height: min(70vh, 744px);
  background: var(--black);
}

@media (max-width: 899px) {
  /* Reserva proporción del banner (1760×744) antes de pintar la imagen → menos CLS */
  .carousel__viewport {
    aspect-ratio: 1760 / 744;
    max-height: none;
    min-height: 0;
    height: auto;
    padding-block: 10px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel__slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    margin-inline: auto;
  }

  .site-footer__row {
    justify-content: space-between !important;
  }

  .contact__intro-inner{
    text-align: left;
  }
  .form__submit{
    align-self: flex-start;
  }
  .form{
    gap: 5px !important;
  }
  .products{
    gap: 20px !important;
  }
  .product-card__media{
    height: 400px !important;
  }

  /* Footer social: Instagram a los lados, WhatsApp al centro */
  .site-footer__row--social {
    justify-content: space-between;
    width: 100%;
    padding: 0 clamp(6px, 3vw, 14px);
  }

  .site-footer__row--social .icon-box[href*="chealimentos.ar"] {
    order: 1;
  }

  .site-footer__row--social .icon-box[href*="wa.me"] {
    order: 2;
  }

  .site-footer__row--social .icon-box[href*="instagram.com/oatly"] {
    order: 3;
  }

  .icon-box--lg:last-child{
    border-left: none !important;
  }
}

.carousel__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 899px) {
  /* Después de position:absolute en base: flujo para que el viewport tome el alto de la imagen */
  .carousel__slides {
    height: auto;
    min-height: 0;
  }

  .carousel__slide {
    position: relative;
    inset: auto;
    display: none;
    opacity: 1;
    margin: 0;
    padding-inline: clamp(8px, 2vw, 14px);
    transition: none;
    align-items: center;
    justify-content: center;
  }

  .carousel__slide.is-active {
    display: flex;
  }
}

@media (min-width: 900px) {
  .carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #C6C6C6;
  z-index: 2;
  width: clamp(36px, 8vw, 48px);
  height: clamp(36px, 8vw, 48px);
  padding: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel__btn--prev {
  left: clamp(12px, 2.5vw, 33px);
  transform: translateY(-50%) rotate(-0.07deg);
}

.carousel__btn--next {
  right: clamp(12px, 2.5vw, 33px);
}

/* ——— Contact ——— */
.contact {
  margin-top: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5vw, 48px);
  padding: 0 2%;
}

@media (min-width: 900px) {
  .contact {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(48px, 12vw, 280px);
  }
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: center;
  text-align: center;
  width: 100%;
}

@media (min-width: 900px) {
  .contact__intro {
    align-items: center;
    text-align: left;
  }
}

.contact__logo-wrap {
  padding-bottom: 20px;
}

/* SVG vertical 480×602: sin width/height auto para evitar fallos de tamaño */
.contact__logo {
  --logo-w: 480;
  --logo-h: 602;
  --cap-w: min(165px, 56vw);
  --cap-h: min(210px, 36vh);
  width: min(var(--cap-w), calc(var(--cap-h) * var(--logo-w) / var(--logo-h)));
  height: calc(min(var(--cap-w), calc(var(--cap-h) * var(--logo-w) / var(--logo-h))) * var(--logo-h) / var(--logo-w));
  max-width: var(--cap-w);
  max-height: var(--cap-h);
}

@media (max-width: 800px) {
  .contact{
    align-items: flex-start;
  }
  .contact__intro{
    align-items: flex-start;
  }
  .contact__logo {
    --cap-w: min(128px, 46vw);
    --cap-h: min(160px, 28vh);
  }
}

.contact__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 18vw, 120px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: left;
}
.contact__title1 {
  margin: 0;
  margin-bottom: 25px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: left;
}
.contact__title span {
  display: block;
}

.contact__subtitle {
  margin: 0;
  font-family: var(--font-form);
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 400;
  padding: 20px 0;
}

label.form__field {
  box-shadow: 0 4px 2.4px 0 rgba(0, 0, 0, 0.06);
}

.contact__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.contact__wa,
.contact__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--black);
}

.contact__wa img {
  width: 37px;
  height: auto;
}

.contact__email svg {
  display: block;
  width: 50px;
  height: auto;
}

/* ——— Form ——— */
.form {
  margin-top: 25px;
  width: 100%;
  max-width: 827px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

@media (min-width: 900px) {
  .form {
    align-items: flex-start;
  }
}

.form__fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form__field input,
.form__field textarea,
.form__field select {
  width: 100%;
  height: 44px;
  padding: 9px 20px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--input-bg);
  font-family: var(--font-form);
  font-size: 14px;
  color: var(--input-border);
}

.form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23010118' d='M1 1.5L6 6l5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form__field select:invalid {
  color: var(--input-border);
}

.form__field select option {
  color: var(--input-border);
  background: var(--input-bg);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--input-border);
  opacity: 1;
}

.form__field--textarea textarea {
  height: 211px;
  min-height: 160px;
  resize: vertical;
}

.form__field--recaptcha {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
}

.form__field input:focus,
.form__field textarea:focus,
.form__field select:focus {
  outline: 2px solid var(--ticker-border);
  outline-offset: 1px;
}

.form__field input.invalid,
.form__field textarea.invalid,
.form__field select.invalid {
  border-color: #b00020;
}

.form__submit {
  min-height: 44px;
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  background: var(--grey);
  font-family: var(--font-form);
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
}

.form__submit:hover {
  filter: brightness(0.95);
}

.form__submit:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.form__feedback {
  position: relative;
  margin: 0;
  min-height: 3rem;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-form);
  font-size: 14px;
  line-height: 1.45;
  width: 100%;
  color: var(--black);
  background: var(--input-bg);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.form__feedback.is-sending,
.form__feedback.is-success,
.form__feedback.is-error {
  padding-left: 44px;
}

.form__feedback:empty {
  min-height: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.form__feedback.is-sending::before,
.form__feedback.is-success::before,
.form__feedback.is-error::before {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  transform: translateY(-50%);
}

.form__feedback.is-sending {
  border-color: #90a4ae;
  background: #eceff1;
  color: #37474f;
}

.form__feedback.is-sending::before {
  content: "";
  box-sizing: border-box;
  border: 2px solid #b0bec5;
  border-top-color: #263238;
  width: 20px;
  height: 20px;
  line-height: 0;
  animation: form-feedback-spin 0.7s linear infinite;
}

.form__feedback.is-success {
  border-color: #2e7d32;
  background: #e8f5e9;
  color: #1b5e20;
}

.form__feedback.is-success::before {
  content: "✓";
  background: #2e7d32;
  color: var(--white);
}

.form__feedback.is-error {
  border-color: #c62828;
  background: #ffebee;
  color: #b71c1c;
}

.form__feedback.is-error::before {
  content: "!";
  background: #c62828;
  color: var(--white);
}

@keyframes form-feedback-spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form__feedback.is-sending::before {
    animation: none;
    border-color: #546e7a;
    border-top-color: #546e7a;
  }
}

/* ——— Products ——— */
.products {
  margin-top: clamp(40px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 900px) {
  .products {
    flex-direction: row;
    gap: 42px;
    align-items: stretch;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: clamp(0px, 0vw, 0px);
  box-shadow: var(--shadow-card);
}

.product-card__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.product-card__link:hover .product-card__caption,
.product-card__link:focus-visible .product-card__caption {
  filter: brightness(0.96);
}

.product-card__link:focus-visible {
  outline: 2px solid var(--ticker-border);
  outline-offset: 2px;
}

/* Tarjeta enlace a FAQ: imagen más chica, centrada, sobre negro */
.product-card--faq-preview .product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

.product-card--faq-preview .product-card__media img {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  max-width: min(78%, 380px);
  max-height: min(72%, 260px);
  object-fit: contain;
}

@media (min-width: 900px) {
  .product-card--faq-preview .product-card__media img {
    max-width: min(55%, 360px);
    max-height: min(65%, 220px);
  }
}

@media (max-width: 899px) {
  .product-card + .product-card {
    margin-top: 0;
  }
}

.product-card__media {
  position: relative;
  border: 1px solid var(--black);
  flex: 1 1 auto;
  min-height: clamp(220px, 55vw, 375px);
  overflow: hidden;
}

.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__caption {
  background: var(--grey);
  border: 1px solid var(--black);
  border-top: none;
  padding: 20px;
  margin-top: -1px;
}

.product-card__caption p {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: normal;
}

@media (min-width: 900px) {
  .product-card--wide {
    flex: 2.1 1 0;
    min-width: 0;
  }

  .product-card:not(.product-card--wide) {
    flex: 1 1 0;
    min-width: 0;
  }

  /* Misma altura de fila y bloques de imagen alineados (caption con altura mínima común) */
  .product-card__media {
    min-height: clamp(200px, 22vw, 320px);
  }

  .product-card__caption {
    min-height: 5.5rem;
  }
}

/* ——— FAQ ——— */
.faq {
  margin-top: clamp(40px, 5vw, 56px);
  border: 1px solid var(--black);
  background: var(--white);
  box-shadow: 0 4px 1.9px rgba(0, 0, 0, 0.12);
}

.faq--below-pattern {
  margin-top: clamp(32px, 5vw, 48px);
}

#faq {
  scroll-margin-top: 88px;
}

@media (max-width: 899px) {
  #faq {
    scroll-margin-top: 56px;
  }
}

.faq__heading {
  margin: 0;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 4vw, 40px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  background: var(--white);
}

.faq__list {
  padding: 0;
  background: var(--white);
}

.faq__item {
  border-bottom: 1px solid var(--black);
  background: var(--white);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__item[open] {
  background: var(--grey);
}

.faq__question {
  list-style: none;
  display: block;
  cursor: pointer;
  padding: clamp(16px, 2.5vw, 22px) clamp(20px, 4vw, 40px);
  padding-right: clamp(44px, 8vw, 56px);
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.35;
  position: relative;
  background: var(--white);
}

.faq__item[open] .faq__question {
  background: var(--grey);
}

.faq__question::marker {
  content: "";
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "";
  position: absolute;
  right: clamp(20px, 4vw, 36px);
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq__answer {
  margin: 0;
  padding: 0 clamp(20px, 4vw, 40px) clamp(18px, 2.5vw, 24px);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.45;
  max-width: 920px;
  background: var(--white);
}

.faq__item[open] .faq__answer {
  background: var(--grey);
}

.faq__question:focus {
  outline: none;
}

.faq__question:focus-visible {
  outline: 2px solid var(--ticker-border);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .faq__question::after {
    transition: none;
  }
}

/* ——— Pattern ——— */
.pattern {
  margin-top: clamp(32px, 5vw, 48px);
  width: 100%;
  background: var(--white);
}

.pattern img {
  display: block;
  width: 100%;
  max-width: var(--wrap-max);
  height: auto;
  margin: 0 auto;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: clamp(24px, 4vw, 40px);
  border: 1px solid var(--black);
  box-sizing: border-box;
  max-width: var(--wrap-max);
  width: min(100% - var(--gutter) * 2, var(--wrap-max));
  margin-left: auto;
  margin-right: auto;
}

.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--black);
  background: var(--white);
}

.site-footer__row:last-child {
  border-bottom: none;
}

.site-footer__row--full {
  min-height: 51px;
  font-family: var(--font-ui);
  font-size: clamp(16px, 2.5vw, 25px);
  font-weight: 400;
  line-height: 1.16;
}

.site-footer__row--full a {
  padding: 14px 10px;
}

.site-footer__row--social {
  gap: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-footer__row--social .icon-box {
  width: 51px;
  height: 51px;
  min-height: 51px;
}

@media (min-width: 900px) {
  .site-footer__row--full {
    min-height: 65px;
  }

  .site-footer__row--social {
    gap: clamp(32px, 6vw, 96px);
  }

  .site-footer__row--social .icon-box--lg {
    width: 66px;
    height: 66px;
    min-height: 66px;
  }
}

.icon-box--lg {
  border: none;
  border-left: 1px solid var(--black);
  border-right: 1px solid var(--black);
}

/* ——— Colofón (créditos) ——— */
.site-colophon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: clamp(20px, 4vw, 10px);
    margin-left: auto;
    margin-right: auto;
    max-width: var(--wrap-max);
    width: min(100% - var(--gutter) * 2, var(--wrap-max));
    padding: 0px 0 8px;
    font-family: var(--font-legal);
    font-size: clamp(13px, 2vw, 15px);
    letter-spacing: 0.04em;
    color: var(--black);
}

.site-colophon__left {
  opacity: 0.92;
}

.site-colophon__right {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-colophon__right:hover,
.site-colophon__right:focus-visible {
  opacity: 0.75;
}

.site-colophon__right:focus-visible {
  outline: 2px solid var(--ticker-border);
  outline-offset: 3px;
}

/* ——— Legal bar ——— */
.legal-bar {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 clamp(20px, 6vw, 100px);
  background: var(--grey);
  font-family: var(--font-legal);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-bar__mock {
  color: var(--black);
}

.legal-bar__brand {
  width: 88px;
  height: auto;
}
