/*
 * TEC · Home V02 (B04): Architectural Essence (TEC-06), Signature Selection (TEC-07),
 * Complete Collection Gateway (TEC-08), Living Atmospheres (TEC-17) y The Katia Signature (TEC-18).
 * Composiciones de HOME-D01–D04 / HOME-M01–M04 con fondos originales por dispositivo y capas
 * decorativas en reposo (fallback editorial fijo). Sin bucles ambientales, revelaciones,
 * énfasis animados ni scroll interceptado: el movimiento corresponde a B07.
 */

.tec-home-section {
  font-family: var(--tec-font-sans);
  font-synthesis: none;
  letter-spacing: normal;
  color: var(--tec-text-primary);
  -webkit-font-smoothing: antialiased;
}

.tec-home-section :where(h1, h2, h3, p) {
  margin: 0;
}

.tec-home-section a:focus-visible,
.tec-home-section button:focus-visible {
  outline: var(--tec-focus-width) solid var(--tec-focus-light);
  outline-offset: var(--tec-focus-offset);
}

/* Las anclas internas no quedan bajo el header fijo. */
.tec-home-section [id] {
  scroll-margin-top: 72px;
}

/* Eyebrow editorial de Home: espaciado amplio de los mockups, sin negrita sintética. */
.tec-home-eyebrow {
  margin: 0;
  color: var(--tec-text-secondary);
  font-size: var(--tec-type-eyebrow);
  font-weight: 400;
  line-height: var(--tec-leading-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tec-home-title {
  margin: 0;
  color: var(--tec-text-primary);
  font-family: var(--tec-font-serif);
  font-size: var(--tec-type-h2);
  font-weight: 400;
  line-height: var(--tec-leading-h2);
  letter-spacing: var(--tec-tracking-heading);
  text-wrap: balance;
}

.tec-home-title em,
.tec-home-italic {
  font-style: italic;
}

.tec-home-lead {
  max-inline-size: var(--tec-measure);
  margin: 0;
  color: var(--tec-text-secondary);
  font-size: var(--tec-type-body);
  line-height: var(--tec-leading-body);
}

.tec-home-picture,
.tec-home-picture img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.tec-home-picture img {
  object-fit: cover;
}

.tec-home-layer {
  position: absolute;
  display: block;
  block-size: auto;
  max-inline-size: none;
  pointer-events: none;
  user-select: none;
}

/* ======================================================================
   TEC-06 · Architectural Essence (HOME-D01 / HOME-M01)
   Primer viewport: logo, frase y acciones. Tramo extra inicial 0.
   ====================================================================== */
.tec-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-block-size: max(150vw, min(162vw, calc(100svh - 72px)));
  overflow: hidden;
  background: var(--tec-color-stone);
}

.tec-hero__media {
  position: absolute;
  inset: 0;
  z-index: var(--tec-z-scene-background);
}

.tec-hero__bg img {
  object-position: 50% 100%;
}

.tec-hero__layer {
  z-index: var(--tec-z-scene-back);
  /* Las capas AE son cuadradas: se funden por los bordes para no mostrar cortes rectos. */
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}

/* Móvil: una capa inicial (AE-02) sobre el arco, sin tapar el podio. */
.tec-hero__layer--back {
  inset-block-start: 16%;
  inset-inline-end: -42%;
  inline-size: 132%;
  opacity: 0.85;
}

.tec-hero__layer--front {
  display: none;
  z-index: var(--tec-z-scene-front);
}

/* Velo localizado de contraste (no gradiente genérico): solo bajo el bloque editorial. */
/* Dawn oculta div:empty (base.css, especificidad 0,1,1): sin este selector el velo no se pinta. */
.tec-hero .tec-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: var(--tec-z-scene-front);
  display: block;
  /* Iluminación marfil de HOME-M01 bajo antetítulo, marca, frase y acciones (texto ≥ 4.5:1). */
  background:
    radial-gradient(ellipse 92% 46% at 50% 30%, rgb(241 235 225 / 86%) 0%, rgb(241 235 225 / 74%) 52%, rgb(241 235 225 / 0%) 100%),
    linear-gradient(180deg, rgb(241 235 225 / 40%) 0%, rgb(241 235 225 / 22%) 46%, rgb(241 235 225 / 0%) 66%);
  pointer-events: none;
}

.tec-hero__content {
  position: relative;
  z-index: var(--tec-z-scene-ui);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: calc(var(--tec-content-max) + 2 * var(--tec-gutter));
  margin-inline: auto;
  padding: 22px var(--tec-gutter) var(--tec-s10);
  text-align: center;
}

.tec-hero__eyebrow {
  color: var(--tec-text-secondary);
  letter-spacing: 0.24em;
}

.tec-hero__title {
  margin: 10px 0 0;
  line-height: 0;
}

.tec-hero__title .tec-brand--hero {
  --tec-brand-width: min(78vw, 340px);
  --tec-brand-clearance: 0;
}

.tec-hero__tagline {
  margin-block-start: 6px;
  color: var(--tec-color-cacao);
  font-family: var(--tec-font-serif);
  font-size: calc(21 * var(--tec-u));
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
}

.tec-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--tec-s3);
  inline-size: 100%;
  margin-block-start: 22px;
}

.tec-hero__primary {
  justify-content: space-between;
  inline-size: min(100%, 262px);
  min-block-size: 48px;
  padding-inline: 24px 20px;
  font-size: calc(16 * var(--tec-u));
}

.tec-hero__secondary {
  gap: 18px;
  font-size: calc(15 * var(--tec-u));
}

.tec-hero__secondary .tec-arrow {
  color: var(--tec-text-primary);
}

/* Sentinel del final real del hero: hook de Brand Reveal (B07). */
.tec-hero__end {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 1px;
  pointer-events: none;
  scroll-margin-top: 72px;
}

.tec-hero__next {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-start: 50%;
  z-index: var(--tec-z-scene-ui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: var(--tec-target);
  block-size: var(--tec-target);
  border-radius: 50%;
  background: var(--tec-surface-card);
  color: var(--tec-text-primary);
  transform: translateX(-50%);
  box-shadow: 0 2px 10px rgb(48 41 36 / 12%);
}

.tec-hero__next svg {
  inline-size: 20px;
  block-size: 20px;
}

@media screen and (min-width: 768px) {
  .tec-hero {
    min-block-size: max(560px, calc(100svh - 72px));
  }

  .tec-hero__bg img {
    object-position: 100% 50%;
  }
}

@media screen and (min-width: 1024px) {
  .tec-home-section [id] {
    scroll-margin-top: 84px;
  }

  .tec-hero {
    justify-content: center;
    min-block-size: max(600px, calc(100svh - 84px));
  }

  .tec-hero__bg img {
    object-position: 72% 38%;
  }

  .tec-hero__layer--back {
    inset-block-start: -22%;
    inset-inline-end: -6%;
    inline-size: 62%;
    opacity: 0.72;
  }

  .tec-hero__layer--front {
    display: block;
    inset-block-end: -34%;
    inset-inline-start: 30%;
    inline-size: 40%;
    opacity: 0.5;
  }

  .tec-hero .tec-hero__scrim {
    background:
      radial-gradient(ellipse 34% 52% at 22% 50%, rgb(241 235 225 / 78%) 0%, rgb(241 235 225 / 62%) 55%, rgb(241 235 225 / 0%) 100%),
      linear-gradient(90deg, rgb(241 235 225 / 50%) 0%, rgb(241 235 225 / 34%) 30%, rgb(241 235 225 / 0%) 47%);
  }

  .tec-hero__content {
    align-items: flex-start;
    padding-block: 72px 96px;
    text-align: start;
  }

  .tec-hero__eyebrow {
    font-size: calc(11 * var(--tec-u));
    letter-spacing: 0.26em;
  }

  .tec-hero__title {
    margin-block-start: 4px;
  }

  .tec-hero__title .tec-brand--hero {
    --tec-brand-width: clamp(400px, 35.2vw, 507px);
  }

  .tec-hero__tagline {
    margin-block-start: 18px;
    font-size: clamp(28px, 2.36vw, 34px);
  }

  .tec-hero__actions {
    align-items: flex-start;
    gap: 12px;
    margin-block-start: 34px;
  }

  .tec-hero__primary {
    inline-size: 254px;
    min-block-size: 55px;
    padding-inline: 19px 20px;
    font-size: calc(15 * var(--tec-u));
  }

  .tec-hero__secondary {
    font-size: calc(15 * var(--tec-u));
  }

  .tec-hero__next {
    inset-block-end: 18px;
  }

  .tec-hero__end {
    scroll-margin-top: 84px;
  }
}

/* ======================================================================
   TEC-07 · Signature Selection (HOME-D02 / HOME-M02 + Signature_Selection_Preview)
   Carrusel manual: scroll-snap nativo, flechas etiquetadas, sin autoplay.
   ====================================================================== */
.tec-selection {
  padding-block: 44px 28px;
  background: var(--tec-color-ivory);
}

.tec-selection__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--tec-s3) var(--tec-s4);
}

.tec-selection__intro {
  display: grid;
  gap: var(--tec-s3);
  min-inline-size: 0;
}

.tec-selection__intro .tec-home-eyebrow {
  margin-block-end: var(--tec-s1);
}

.tec-selection__lead {
  max-inline-size: 36ch;
}

.tec-carousel__controls {
  display: flex;
  gap: var(--tec-s3);
  padding-block-end: var(--tec-s1);
}

.tec-carousel__controls[hidden],
.tec-carousel__dots[hidden] {
  display: none;
}

/* M02: las flechas acompañan al texto introductorio sin estrechar antetítulo ni H2. */
@media screen and (max-width: 767px) {
  .tec-selection__head {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
  }

  .tec-carousel__controls {
    position: absolute;
    inset-block-end: 0;
    inset-inline-end: 0;
  }

  .tec-selection__head:has(.tec-carousel__controls:not([hidden])) .tec-selection__lead {
    padding-inline-end: calc(2 * var(--tec-target) + var(--tec-s3) + var(--tec-s3));
  }
}

.tec-carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  inline-size: var(--tec-target);
  block-size: var(--tec-target);
  padding: 0;
  border: var(--tec-border-width) solid var(--tec-border-decorative);
  border-radius: 50%;
  background: var(--tec-surface-card);
  color: var(--tec-text-primary);
  cursor: pointer;
}

.tec-carousel__button svg {
  inline-size: 20px;
  block-size: 20px;
}

.tec-carousel__button[aria-disabled='true'] {
  color: var(--tec-color-taupe);
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .tec-carousel__button:not([aria-disabled='true']):hover {
    border-color: var(--tec-border-control);
  }
}

.tec-carousel {
  margin-block-start: var(--tec-s7);
  margin-inline: calc(var(--tec-gutter) * -1);
}

.tec-carousel__track {
  display: flex;
  gap: var(--tec-gap);
  margin: 0;
  padding: 0 var(--tec-gutter) var(--tec-s1);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--tec-gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.tec-carousel__track::-webkit-scrollbar {
  display: none;
}

.tec-carousel__slide {
  display: flex;
  flex: 0 0 calc((100% - var(--tec-gap)) / 1.15);
  min-inline-size: 0;
  scroll-snap-align: start;
}

.tec-carousel__slide > .tec-card {
  border: var(--tec-border-width) solid var(--tec-border-decorative);
}

.tec-selection .tec-card__body {
  gap: 2px;
  padding: var(--tec-s4) var(--tec-s5) var(--tec-s1);
}

.tec-selection .tec-card__eyebrow {
  margin-block-end: 2px;
  color: var(--tec-text-primary);
  letter-spacing: 0.01em;
}

.tec-selection .tec-card__cta {
  margin-block-start: var(--tec-s3);
}

.tec-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-block-start: var(--tec-s6);
}

.tec-carousel__dot {
  inline-size: 20px;
  block-size: 4px;
  border-radius: 2px;
  background: var(--tec-color-taupe);
  opacity: 0.6;
}

.tec-carousel__dot[data-tec-current='true'] {
  inline-size: 42px;
  background: var(--tec-color-cacao);
  opacity: 1;
}

@media screen and (min-width: 768px) {
  .tec-carousel__slide {
    flex-basis: calc((100% - var(--tec-gap)) / 2.2);
  }
}

@media screen and (min-width: 1024px) {
  .tec-selection {
    padding-block: 44px 30px;
  }

  .tec-selection__intro {
    gap: var(--tec-s4);
  }

  .tec-selection__intro .tec-home-title {
    font-size: clamp(var(--tec-type-h2), 3.6vw, 52px);
  }

  .tec-selection__lead {
    max-inline-size: none;
  }

  .tec-carousel {
    margin-block-start: 28px;
    margin-inline: 0;
  }

  .tec-carousel__track {
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .tec-carousel__slide {
    flex-basis: calc((100% - 2 * var(--tec-gap)) / 3);
  }

  .tec-carousel__dots {
    margin-block-start: 26px;
  }
}

/* ======================================================================
   TEC-08 · Complete Collection Gateway (banda SH de HOME-D02 / HOME-M02)
   ====================================================================== */
.tec-gateway {
  padding-block: 28px 44px;
  background: var(--tec-color-ivory);
}

.tec-gateway__panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-block-size: 330px;
  overflow: hidden;
  border-radius: var(--tec-radius-panel);
  background: var(--tec-color-cacao);
  color: var(--tec-text-inverse);
}

.tec-gateway__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tec-gateway__media img {
  object-position: 50% 100%;
}

.tec-gateway__panel::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(75 46 28 / 96%) 0%, rgb(75 46 28 / 88%) 44%, rgb(75 46 28 / 30%) 72%, rgb(75 46 28 / 0%) 100%);
  content: '';
  pointer-events: none;
}

.tec-gateway__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--tec-s3);
  padding: 26px 20px 120px;
}

.tec-gateway__eyebrow {
  color: var(--tec-text-inverse-secondary);
}

.tec-gateway__title {
  color: var(--tec-text-inverse);
  font-size: calc(32 * var(--tec-u));
  line-height: 1.1;
}

.tec-gateway__title em {
  display: block;
}

.tec-gateway__text {
  max-inline-size: 26ch;
  color: var(--tec-text-inverse);
  font-size: var(--tec-type-body);
  line-height: var(--tec-leading-body);
}

.tec-gateway__action {
  justify-content: space-between;
  min-inline-size: min(100%, 245px);
  margin-block-start: var(--tec-s3);
  border-color: var(--tec-surface-card);
  font-weight: 400;
}

.tec-gateway__action:focus-visible {
  outline-color: var(--tec-focus-dark);
}

@media screen and (min-width: 768px) {
  .tec-gateway__panel {
    justify-content: center;
    min-block-size: 270px;
  }

  .tec-gateway__media {
    inset-inline-start: 38%;
  }

  .tec-gateway__media img {
    object-position: 50% 78%;
  }

  .tec-gateway__panel::after {
    background: linear-gradient(90deg, rgb(75 46 28 / 100%) 0%, rgb(75 46 28 / 100%) 38%, rgb(75 46 28 / 55%) 48%, rgb(75 46 28 / 0%) 62%);
  }

  .tec-gateway__content {
    gap: 6px;
    padding: 32px 38px;
  }

  .tec-gateway__title {
    font-size: clamp(36px, 3.2vw, 46px);
  }

  .tec-gateway__text {
    max-inline-size: none;
  }

  .tec-gateway__action {
    margin-block-start: 16px;
  }
}

@media screen and (min-width: 1024px) {
  .tec-gateway {
    padding-block: 30px 52px;
  }
}

/* ======================================================================
   TEC-17 · Living Atmospheres (HOME-D03 / HOME-M03)
   Seis universos; 3 D / 2 M / 1 en reflow. CTA general después D, antes M.
   ====================================================================== */
.tec-atmospheres {
  padding-block: 44px 48px;
  background: var(--tec-color-ivory);
}

.tec-atmospheres__head {
  display: grid;
  justify-items: center;
  gap: var(--tec-s3);
  text-align: center;
}

.tec-atmospheres__head .tec-home-eyebrow {
  color: var(--tec-text-primary);
  letter-spacing: 0.3em;
}

.tec-atmospheres__cta {
  display: flex;
  justify-content: center;
}

.tec-atmospheres__cta--after {
  display: none;
}

.tec-atmospheres__cta--before {
  margin-block-start: var(--tec-s6);
}

.tec-atmospheres__action {
  justify-content: space-between;
  min-inline-size: min(100%, 220px);
  font-weight: 400;
}

.tec-atmospheres__grid {
  display: grid;
  /* Two columns while they fit; enlarged text (rem) falls back to one. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(40%, 11rem)), 1fr));
  gap: var(--tec-gap);
  margin: var(--tec-s6) 0 0;
  padding: 0;
  list-style: none;
}

.tec-atmospheres__grid > li {
  display: flex;
  min-inline-size: 0;
}

.tec-atmosphere {
  display: flex;
  flex: 1;
  min-inline-size: 0;
  overflow: hidden;
  border: var(--tec-border-width) solid var(--tec-border-decorative);
  border-radius: var(--tec-radius-card);
  background: var(--tec-surface-card);
}

.tec-atmosphere__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

.tec-atmosphere__media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--tec-surface-panel);
}

.tec-atmosphere__media .tec-home-picture img {
  object-position: 50% 100%;
}

.tec-atmosphere__layer {
  z-index: var(--tec-z-scene-back);
}

.tec-atmosphere[data-tec-atmosphere='BL'] .tec-atmosphere__layer {
  inset-block-start: -12%;
  inset-inline: -6% -6%;
  inline-size: 112%;
}

.tec-atmosphere[data-tec-atmosphere='AR'] .tec-atmosphere__layer {
  inset-block-start: -14%;
  inset-inline-end: -12%;
  inline-size: 86%;
}

.tec-atmosphere[data-tec-atmosphere='UB'] .tec-atmosphere__layer {
  inset-block-end: -38%;
  inset-inline-end: -16%;
  inline-size: 96%;
}

.tec-atmosphere[data-tec-atmosphere='MR'] .tec-atmosphere__layer {
  inset-block-end: -30%;
  inset-inline-start: -8%;
  inline-size: 80%;
  opacity: 0.7;
}

.tec-atmosphere[data-tec-atmosphere='TE'] .tec-atmosphere__layer {
  inset-block-start: -8%;
  inset-inline-end: -16%;
  inline-size: 72%;
}

.tec-atmosphere[data-tec-atmosphere='SH'] .tec-atmosphere__layer {
  inset-block-start: -10%;
  inset-inline-end: -10%;
  inline-size: 70%;
  opacity: 0.8;
}

.tec-atmosphere__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  padding: var(--tec-s3) var(--tec-s3) var(--tec-s1);
}

.tec-atmosphere__index {
  display: none;
  color: var(--tec-text-primary);
  font-size: var(--tec-type-ui);
  line-height: var(--tec-leading-ui);
  font-variant-numeric: lining-nums;
}

.tec-atmosphere__title {
  color: var(--tec-text-primary);
  font-family: var(--tec-font-serif);
  /* M03: dos columnas de ~165 px; el nombre del universo cabe en una línea como en el mockup. */
  font-size: min(var(--tec-type-card-title), calc(18 * var(--tec-u)));
  font-weight: 400;
  line-height: var(--tec-leading-h3);
}

.tec-atmosphere__text {
  color: var(--tec-text-secondary);
  font-size: var(--tec-type-help);
  line-height: 1.4;
}

.tec-atmosphere__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tec-s2);
  min-block-size: var(--tec-target);
  margin-block-start: auto;
  padding-block-start: var(--tec-s1);
  border-block-start: var(--tec-border-width) solid var(--tec-border-decorative);
  font-size: var(--tec-type-ui);
  font-weight: 700;
  line-height: var(--tec-leading-ui);
}

.tec-atmosphere__text + .tec-atmosphere__cta {
  margin-block-start: var(--tec-s3);
}

.tec-atmosphere__cta-d {
  display: none;
}

.tec-atmosphere__cta .tec-arrow {
  color: var(--tec-color-cacao);
}

@media (hover: hover) and (pointer: fine) {
  a.tec-atmosphere__link:hover .tec-atmosphere__cta-label {
    text-decoration: underline;
    text-underline-offset: 0.3em;
  }
}

/* Estado Active Atmosphere listo para B07 (máximo una card). B04 no lo activa. */
.tec-atmosphere[data-tec-active='true'] {
  border-color: var(--tec-color-amber);
  box-shadow: 0 0 0 2px rgb(149 115 83 / 25%), 0 10px 28px rgb(48 41 36 / 18%);
}

.tec-atmosphere[data-tec-active='true'] .tec-atmosphere__body {
  background: var(--tec-color-cacao);
}

.tec-atmosphere[data-tec-active='true'] :is(.tec-atmosphere__title, .tec-atmosphere__index, .tec-atmosphere__cta, .tec-atmosphere__cta .tec-arrow) {
  color: var(--tec-text-inverse);
}

.tec-atmosphere[data-tec-active='true'] .tec-atmosphere__title {
  font-style: italic;
}

.tec-atmosphere[data-tec-active='true'] .tec-atmosphere__text {
  color: var(--tec-text-inverse-secondary);
}

.tec-atmosphere[data-tec-active='true'] .tec-atmosphere__cta {
  border-color: rgb(249 244 234 / 35%);
}

@media screen and (min-width: 1024px) {
  .tec-atmospheres {
    padding-block: 52px 32px;
  }

  .tec-atmospheres__head {
    gap: var(--tec-s4);
  }

  .tec-atmospheres__head .tec-home-title {
    font-size: clamp(var(--tec-type-h2), 4vw, 58px);
  }

  .tec-atmospheres__head .tec-home-lead {
    font-size: calc(21 * var(--tec-u));
  }

  .tec-atmospheres__cta--before {
    display: none;
  }

  .tec-atmospheres__cta--after {
    display: flex;
    margin-block-start: 48px;
  }

  .tec-atmospheres__action {
    min-inline-size: 446px;
    min-block-size: 62px;
    padding-inline: 66px 44px;
    font-size: calc(19 * var(--tec-u));
  }

  .tec-atmospheres__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 20px;
    margin-block-start: 56px;
  }

  .tec-atmosphere__media {
    aspect-ratio: 367 / 297;
  }

  .tec-atmosphere__body {
    padding: 12px 30px 6px;
  }

  .tec-atmosphere__index {
    display: block;
  }

  .tec-atmosphere__title {
    font-size: clamp(var(--tec-type-card-title), 2.4vw, 34px);
  }

  .tec-atmosphere__text {
    font-size: calc(16 * var(--tec-u));
  }

  .tec-atmosphere__cta {
    font-size: calc(16 * var(--tec-u));
  }

  .tec-atmosphere__cta-d {
    display: inline;
  }
}

/* Reflow: una columna si dos no admiten título y CTA (320 px o zoom). */
@media screen and (max-width: 359px) {
  .tec-atmospheres__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ======================================================================
   TEC-18 · The Katia Signature (HOME-D04 / HOME-M04) · ancla nuestra-esencia
   ====================================================================== */
.tec-signature {
  padding-block: 44px 52px;
  background: var(--tec-color-ivory);
}

.tec-signature__grid {
  display: grid;
  gap: 44px;
}

.tec-signature__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-inline-size: 0;
}

.tec-signature__title {
  margin-block-start: 18px;
  font-size: calc(38 * var(--tec-u));
  line-height: 1.12;
}

.tec-signature__title em {
  display: block;
}

.tec-signature__rule {
  inline-size: 64px;
  margin: 26px 0 24px;
  border: 0;
  border-block-start: var(--tec-border-width) solid var(--tec-accent-decorative);
}

.tec-signature__body {
  max-inline-size: 34ch;
  color: var(--tec-text-secondary);
  font-size: calc(17 * var(--tec-u));
  line-height: 1.6;
}

.tec-signature__mark {
  display: block;
  inline-size: 170px;
  block-size: auto;
  margin-block-start: 24px;
  aspect-ratio: 587 / 160;
}

.tec-signature__link {
  gap: 18px;
  margin-block-start: 24px;
  font-size: calc(17 * var(--tec-u));
}

.tec-signature__media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--tec-radius-panel);
  background: var(--tec-surface-panel);
}

.tec-signature__media .tec-home-picture img {
  object-position: 60% 80%;
}

.tec-signature__layer {
  inset-block-start: -40%;
  inset-inline-start: -12%;
  inline-size: 124%;
  z-index: var(--tec-z-scene-back);
  opacity: 0.85;
}

.tec-signature--ink {
  background: var(--tec-surface-inverse);
}

.tec-signature--ink :is(.tec-home-title, .tec-signature__link, .tec-signature__link .tec-arrow) {
  color: var(--tec-text-inverse);
}

.tec-signature--ink :is(.tec-home-eyebrow, .tec-signature__body) {
  color: var(--tec-text-inverse-secondary);
}

.tec-signature--ink a:focus-visible {
  outline-color: var(--tec-focus-dark);
}

@media screen and (min-width: 1024px) {
  .tec-signature {
    padding-block: 47px 50px;
  }

  .tec-signature__grid {
    grid-template-columns: minmax(0, 641fr) minmax(0, 623fr);
    align-items: center;
    gap: 0;
  }

  .tec-signature__text {
    padding-block: 22px;
  }

  .tec-signature__title {
    margin-block-start: 16px;
    font-size: clamp(var(--tec-type-h2), 3.9vw, 56px);
  }

  .tec-signature__rule {
    margin-block: 34px 26px;
  }

  .tec-signature__body {
    max-inline-size: 400px;
    font-size: calc(19 * var(--tec-u));
  }

  .tec-signature__mark {
    inline-size: 220px;
    margin-block-start: 32px;
  }

  .tec-signature__link {
    margin-block-start: 52px;
  }

  .tec-signature__media {
    aspect-ratio: 623 / 560;
  }

  .tec-signature__media .tec-home-picture img {
    object-position: 82% 70%;
  }

  .tec-signature__layer {
    inset-block-start: -40%;
    inset-inline-start: -16%;
    inline-size: 130%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tec-home-section *,
  .tec-home-section *::before,
  .tec-home-section *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


.tec-gateway__panel { color: inherit; text-decoration: none; }
.tec-gateway__panel:focus-visible { outline-offset: 4px; }
.tec-gateway__media {
  clip-path: inset(0 0 0 calc((1 - var(--tec-scene-motion, 1)) * 22%));
  scale: calc(1 + (1 - var(--tec-scene-motion, 1)) * .09);
  transform-origin: right center;
}
.tec-atmosphere__media { isolation: isolate; }
.tec-atmospheres__grid > li { min-inline-size: 0; }
@media (max-width: 767px) {
  .tec-atmospheres__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .tec-selection .tec-card__link .tec-scene__fallback img {
    transition: scale 500ms var(--tec-ease-ui), clip-path 500ms var(--tec-ease-ui);
    clip-path: inset(3%);
    scale: 1.025;
  }
  .tec-selection .tec-card__link:is(:hover, :focus-visible) .tec-scene__fallback img {
    clip-path: inset(0);
    scale: 1.09;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tec-gateway__media { clip-path: none; scale: 1; }
}


@media (min-width: 1024px) {
  .tec-hero:has([data-tec-cinema]) { --tec-cinema-focal: 91% center; }
  .tec-hero:has([data-tec-cinema]) .tec-hero__scrim {
    background: radial-gradient(ellipse 39% 57% at 18% 45%, rgb(241 235 225 / .46), transparent);
  }
}
@media (max-width: 767px) {
  .tec-hero:has([data-tec-cinema]) {
    min-block-size: clamp(150vw, calc(100svh - 72px), 170vw);
    --tec-cinema-focal: center 55%;
  }
  .tec-hero:has([data-tec-cinema]) .tec-hero__title .tec-brand--hero {
    --tec-brand-width: min(70vw, 325px);
  }
  .tec-hero:has([data-tec-cinema]) .tec-hero__tagline { margin-block: 8px 0; }
  .tec-hero:has([data-tec-cinema]) .tec-hero__actions { margin-block-start: 15px; gap: 8px; }
  .tec-hero:has([data-tec-cinema]) .tec-hero__primary {
    inline-size: min(100%, 232px);
    white-space: nowrap;
  }
  .tec-hero:has([data-tec-cinema]) .tec-hero__secondary {
    position: relative;
    isolation: isolate;
    padding-inline: 9px;
  }
  .tec-hero:has([data-tec-cinema]) .tec-hero__secondary::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 5px -5px;
    border-radius: 20px;
    background: radial-gradient(ellipse 70% 68%, rgb(249 244 234 / .97) 65%, transparent);
    pointer-events: none;
  }
  .tec-hero:has([data-tec-cinema]) .tec-hero__scrim {
    background: radial-gradient(ellipse 100% 49% at 50% 18%, rgb(241 235 225 / .60), transparent 90%);
  }
}

@keyframes tec-editorial-rail-mask {
  0%, 100% { clip-path: inset(4% 2%); }
  48%, 52% { clip-path: inset(0); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view(inline)) {
    html[data-tec-motion-profile]:not([data-tec-motion-profile='static']) .tec-selection .tec-card__link:not(:hover):not(:focus-visible) .tec-scene__fallback {
      animation: tec-editorial-rail-mask both;
      animation-timeline: view(inline);
    }
  }
}
