/* =============================================================
   TINTIN — Hero "Bienvenida tintina".

   La fotografía es sólo un apoyo visual. El título, el subtítulo y las
   acciones viven en HTML real para que el hero siga funcionando aunque una
   imagen tarde o no esté disponible.

   Desktop y tablet horizontal: layout en fila (texto a la izquierda,
   fotografía en tarjeta redondeada a la derecha).
   Tablet vertical y mobile: apilado (fotografía arriba a todo el ancho,
   texto centrado debajo), ambos sobre la misma superficie de degradado.
   ============================================================= */

html body.tt-home-premium .tt-hero {
  display: grid;
  position: relative;
  background: linear-gradient(180deg,
    #ed82b4 0%,
    #f39ac2 48%,
    #fbd5e7 100%);
}

html body.tt-home-premium .tt-hero,
html body.tt-home-premium .tt-hero-media {
  background: linear-gradient(180deg,
    #ed82b4 0%,
    #f39ac2 48%,
    #fbd5e7 100%) !important;
}

html body.tt-home-premium .tt-hero-media {
  position: relative;
  inset: auto;
  z-index: 0;
  overflow: hidden;
  background: var(--pink-pale, #fce4ec);
}

html body.tt-home-premium .tt-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #ffffff !important;
}

html body.tt-home-premium .tt-hero-subtitle {
  color: #755d57 !important;
  text-shadow: none;
}

html body.tt-home-premium .tt-hero-title {
  position: relative;
  width: 100%;
  margin: 0 0 clamp(24px, 3vw, 42px);
  color: #fff !important;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(3.2rem, 7vw, 7.8rem);
  font-weight: 300;
  line-height: .82;
  letter-spacing: -.055em;
  text-align: left;
  text-shadow: 0 4px 22px rgba(121, 35, 79, .16);
}

html body.tt-home-premium .tt-hero-title-line {
  display: block;
}

html body.tt-home-premium .tt-hero-title-line--accent {
  margin-left: clamp(56px, 10vw, 150px);
  color: #f24498;
    font-family: "Montserrat", sans-serif;
    font-size: 1.02em;
    font-style: italic;
    font-weight: 500;
  letter-spacing: -.08em;
}

html body.tt-home-premium .tt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
}

html body.tt-home-premium .tt-hero-actions .tt-btn.tt-hero-cta {
  background: #fff !important;
  background-color: #fff !important;
  color: #f24498 !important;
  border: 0 !important;
  min-height: 52px;
  border-radius: 999px;
  box-shadow: none !important;
  transition:
    transform 180ms cubic-bezier(.2, .75, .25, 1),
    box-shadow 180ms ease,
    background-color 180ms ease;
}

html body.tt-home-premium .tt-hero-actions .tt-btn.tt-hero-cta:hover {
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: 0 10px 26px rgba(45, 12, 27, .12) !important;
  transform: none;
}

html body.tt-home-premium .tt-hero-link {
  color: #755d57;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html body.tt-home-premium .tt-hero-link:hover {
  color: #ad3f67;
}

/* Desktop y tablet horizontal (≥1121px, o tablet en orientación horizontal):
   fila — texto a la izquierda sobre el degradado, foto en tarjeta a la
   derecha. */
@media (min-width: 1121px),
       (min-width: 768px) and (max-width: 1120px) and (orientation: landscape) {
  html body.tt-home-premium .tt-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
    grid-template-areas: "content media";
    align-items: center;
    justify-items: start;
    gap: clamp(24px, 4vw, 64px);
    min-height: clamp(560px, 82svh, 900px);
    padding: clamp(28px, 4vw, 72px) clamp(24px, 6vw, 96px);
  }

  html body.tt-home-premium .tt-hero-content {
    grid-area: content;
    width: 100%;
    max-width: 560px;
  }

  html body.tt-home-premium .tt-hero-media {
    grid-area: media;
    justify-self: end;
    align-self: center;
    width: min(100%, 720px);
    aspect-ratio: 4 / 5;
    border-radius: 32px;
    box-shadow: 0 28px 64px rgba(45, 12, 27, .28);
  }

  html body.tt-home-premium .tt-hero-subtitle {
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    margin: 0 0 clamp(24px, 3vw, 36px);
  }
}

@media (min-width: 768px) and (max-width: 1120px) and (orientation: landscape) {
  html body.tt-home-premium .tt-hero {
    min-height: clamp(480px, 78svh, 620px);
    padding: clamp(22px, 3.4vw, 44px) clamp(20px, 4.5vw, 48px);
  }

  html body.tt-home-premium .tt-hero-media {
    width: min(100%, 520px);
  }

}

/* Tablet vertical y mobile (≤1120px en orientación vertical, o ≤767px):
   apilado — foto arriba a todo el ancho, texto centrado debajo, ambos
   sobre la misma superficie de degradado (sin corte ni salto visual). */
@media (max-width: 767px),
       (max-width: 1120px) and (orientation: portrait) {
  html body.tt-home-premium .tt-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto clamp(320px, 52svh, 680px) auto auto;
    grid-template-areas: "title" "media" "subtitle" "actions";
    align-items: stretch;
    min-height: 0;
    padding: 0 0 clamp(32px, 6vw, 56px);
  }

  html body.tt-home-premium .tt-hero-media {
    grid-area: media;
    width: min(calc(100% - 32px), 720px);
    height: 100%;
    margin: 0 auto;
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(118, 54, 84, .18);
  }

  html body.tt-home-premium .tt-hero-content {
    display: contents;
  }

  html body.tt-home-premium .tt-hero-title {
    grid-area: title;
    width: min(calc(100% - 32px), 720px);
    margin: clamp(24px, 6vw, 48px) auto clamp(14px, 3vw, 24px);
    text-align: center;
    font-size: clamp(3rem, 13vw, 6rem);
  }

  html body.tt-home-premium .tt-hero-title-line--accent {
    margin-left: clamp(30px, 12vw, 100px);
  }

  html body.tt-home-premium .tt-hero-subtitle {
    grid-area: subtitle;
    width: min(calc(100% - 32px), 720px);
    margin: clamp(24px, 5vw, 40px) auto 0;
    text-align: center;
    font-size: clamp(.98rem, 3vw, 1.12rem);
  }

  html body.tt-home-premium .tt-hero-actions {
    grid-area: actions;
    width: min(calc(100% - 32px), 720px);
    margin: clamp(16px, 3vw, 24px) auto 0;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 767px) {
  html body.tt-home-premium .tt-hero {
    grid-template-rows: auto clamp(300px, 48svh, 560px) auto auto;
    padding-bottom: 28px;
  }

  html body.tt-home-premium .tt-hero-media {
    border-radius: 24px;
  }

  html body.tt-home-premium .tt-hero-actions {
    width: min(calc(100% - 32px), 420px);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  html body.tt-home-premium .tt-hero-actions .tt-btn.tt-hero-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  html body.tt-home-premium .tt-hero {
    grid-template-rows: clamp(270px, 44svh, 430px) auto auto;
  }

}

@media (max-height: 520px) and (orientation: landscape) and (max-width: 1023px) {
  html body.tt-home-premium .tt-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
    grid-template-rows: minmax(360px, 100svh);
    grid-template-areas: "content media";
    padding: clamp(16px, 3vw, 28px);
    min-height: 0;
  }

  html body.tt-home-premium .tt-hero-media {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.tt-home-premium .tt-hero-actions .tt-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* La composición entregada por diseño ya contiene fondo, marca, producto,
   textos y botón. Se muestra como un lienzo único por dispositivo: no se
   agrega una segunda tarjeta ni se superpone otra versión del título. */
html body.tt-home-premium .tt-hero {
  display: block;
  position: relative;
  width: 100%;
  min-height: calc(100svh - 72px);
  height: min(100svh, calc(100vw * .5625));
  padding: 0 !important;
  overflow: hidden;
  background: #ed82b4 !important;
}

html body.tt-home-premium .tt-hero-media {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
  background: transparent !important;
}

html body.tt-home-premium .tt-hero-media picture,
html body.tt-home-premium .tt-hero-media .tt-hero-img {
  display: block;
  width: 100%;
  height: 100%;
}

html body.tt-home-premium .tt-hero-media .tt-hero-img {
  object-fit: cover !important;
  object-position: center center !important;
}

html body.tt-home-premium .tt-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block !important;
  pointer-events: none;
  color: transparent !important;
}

html body.tt-home-premium .tt-hero-title,
html body.tt-home-premium .tt-hero-subtitle {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html body.tt-home-premium .tt-hero-actions {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

html body.tt-home-premium .tt-hero-actions .tt-hero-cta,
html body.tt-home-premium .tt-hero-actions .tt-hero-link {
  position: absolute;
  display: block;
  width: 27%;
  height: 9%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0;
  line-height: 0;
  pointer-events: auto;
  text-decoration: none;
}

html body.tt-home-premium .tt-hero-actions .tt-hero-cta {
  left: 10%;
  top: 61%;
}

html body.tt-home-premium .tt-hero-actions .tt-hero-link {
  left: 14%;
  top: 76%;
  width: 20%;
  height: 6%;
}

@media (max-width: 1120px) and (orientation: landscape) {
  html body.tt-home-premium .tt-hero {
    min-height: calc(100svh - 84px);
    height: calc(100svh - 84px);
  }
}

@media (max-width: 1120px) and (orientation: portrait),
       (max-width: 767px) {
  html body.tt-home-premium .tt-hero {
    min-height: calc(100svh - 166px);
    height: calc(100svh - 166px);
  }

  html body.tt-home-premium .tt-hero-actions .tt-hero-cta {
    left: 18%;
    top: 78%;
    width: 64%;
    height: 8%;
  }

  html body.tt-home-premium .tt-hero-actions .tt-hero-link {
    left: 30%;
    top: 89%;
    width: 40%;
    height: 5%;
  }
}

/* El encabezado tablet mide 84px y es fijo. A 768px exactos antes no se
   reservaba ese alto: la imagen arrancaba debajo del encabezado y parecía
   haber un hueco/corte. El hero empieza ahora justo al terminar el header. */
@media (min-width: 768px) and (max-width: 1024px) {
  html body.tt-home-premium .tt-hero {
    margin-top: 84px !important;
  }
}

/* =============================================================
   COMPOSICIÓN RESPONSIVE FINAL
   Las imágenes aprobadas ya contienen la marca, el producto y el fondo.
   El subtítulo, las acciones y el enlace siguen siendo HTML accesible y se
   ubican sobre las pastillas vacías que deja cada lienzo.
   ============================================================= */
html body.tt-home-premium .tt-hero {
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1774 / 887;
  overflow: hidden;
}

html body.tt-home-premium .tt-hero-media .tt-hero-img {
  object-fit: fill !important;
  object-position: center !important;
  transform: none !important;
}

html body.tt-home-premium .tt-hero-content,
html body.tt-home-premium .tt-hero-actions {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

html body.tt-home-premium .tt-hero-subtitle {
  display: block !important;
  position: absolute !important;
  left: 8.2%;
  top: 48.5%;
  width: 38% !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  color: #755d57 !important;
  font-size: clamp(1rem, 1.55vw, 1.45rem) !important;
  line-height: 1.2 !important;
  letter-spacing: .12em;
  text-align: center;
}

html body.tt-home-premium .tt-hero-actions {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  pointer-events: none;
}

html body.tt-home-premium .tt-hero-actions .tt-hero-cta {
  left: 7.1% !important;
  top: 55.1% !important;
  width: 36.5% !important;
  height: 7.2% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 .8em !important;
  color: #f24498 !important;
  background: #fff !important;
  background-color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  background-image: none !important;
  animation: none !important;
  transition: none !important;
  isolation: isolate;
  overflow: hidden;
  font-size: clamp(.8rem, 1.85vw, 1.7rem) !important;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
  text-decoration: none;
  pointer-events: auto;
}

html body.tt-home-premium .tt-hero-actions .tt-hero-cta:hover,
html body.tt-home-premium .tt-hero-actions .tt-hero-cta:focus-visible,
html body.tt-home-premium .tt-hero-actions .tt-hero-cta:active {
  background: #fff !important;
  background-color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  color: #f24498 !important;
  transform: none !important;
}

/* El botón base tiene estados animados globales. En este hero el CTA ya es
   una única capa posicionada sobre la composición final: ningún pseudo-
   elemento, sombra o estado heredado debe dibujar una segunda pastilla. */
html body.tt-home-premium .tt-hero-actions .tt-hero-cta::before,
html body.tt-home-premium .tt-hero-actions .tt-hero-cta::after {
  content: none !important;
  display: none !important;
}

html body.tt-home-premium .tt-hero-actions .tt-hero-cta:hover *,
html body.tt-home-premium .tt-hero-actions .tt-hero-cta:focus-visible *,
html body.tt-home-premium .tt-hero-actions .tt-hero-cta:active * {
  color: #f24498 !important;
}

html body.tt-home-premium .tt-hero-actions .tt-hero-link {
  left: 14% !important;
  top: 75.5% !important;
  width: 21% !important;
  height: auto !important;
  color: #755d57 !important;
  font-size: clamp(.85rem, 1.75vw, 1.6rem) !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: .18em;
  white-space: nowrap;
  pointer-events: auto;
}

/* En tablet horizontal y desktop el enlace comparte el mismo eje óptico que
   el subtítulo y la CTA. Antes su caja era mucho más angosta y arrancaba a
   la izquierda, por eso se percibía desordenado aunque los otros dos sí
   estaban centrados. */
html body.tt-home-premium .tt-hero-actions .tt-hero-link {
  left: 7.1% !important;
  width: 36.5% !important;
  text-align: center;
}

@media (max-width: 1120px) and (orientation: landscape) {
  html body.tt-home-premium .tt-hero {
    aspect-ratio: 1536 / 1024;
    height: auto !important;
  }
  html body.tt-home-premium .tt-hero-subtitle {
    left: 7%;
    top: 50%;
    width: 39% !important;
    font-size: clamp(.85rem, 1.9vw, 1.2rem) !important;
  }
  html body.tt-home-premium .tt-hero-actions .tt-hero-cta {
    left: 6.8% !important;
    top: 55.2% !important;
    width: 38% !important;
    font-size: clamp(.72rem, 1.7vw, 1.1rem) !important;
  }
  html body.tt-home-premium .tt-hero-actions .tt-hero-link {
    left: 6.8% !important;
    width: 38% !important;
    top: 76% !important;
    font-size: clamp(.72rem, 1.6vw, 1rem) !important;
  }
}

@media (max-width: 1120px) and (orientation: portrait),
       (max-width: 767px) {
  html body.tt-home-premium .tt-hero {
    aspect-ratio: 1122 / 1402;
    height: auto !important;
  }
  html body.tt-home-premium .tt-hero-subtitle {
    left: 10%;
    top: 70%;
    width: 80% !important;
    font-size: clamp(.82rem, 3.9vw, 1.2rem) !important;
    letter-spacing: .08em;
  }
  html body.tt-home-premium .tt-hero-actions .tt-hero-cta {
    left: 29.5% !important;
    top: 76% !important;
    width: 41% !important;
    height: 5.2% !important;
    font-size: clamp(.72rem, 3.3vw, 1.05rem) !important;
    letter-spacing: .055em;
  }
  html body.tt-home-premium .tt-hero-actions .tt-hero-link {
    left: 25% !important;
    top: 87% !important;
    width: 50% !important;
    font-size: clamp(.78rem, 3.8vw, 1.1rem) !important;
    text-align: center;
  }
}

/* En teléfono el bloque inferior respira un poco más, sin cruzar el borde
   del hero ni tocar la composición independiente de tablet vertical. */
@media (max-width: 767px) {
  html body.tt-home-premium .tt-hero-subtitle { top: 80% !important; }
  html body.tt-home-premium .tt-hero-actions .tt-hero-cta {
    top: 85.1% !important;
    min-height: 48px !important;
    height: 48px !important;
  }
  html body.tt-home-premium .tt-hero-actions .tt-hero-link {
    top: 94% !important;
    min-height: 0 !important;
    height: 22px !important;
    line-height: 22px !important;
  }
}

/* Tablet y desktop: un único eje para texto, CTA y enlace. El teléfono
   conserva su composición aprobada en la regla anterior. */
@media (min-width: 768px) {
  html body.tt-home-premium .tt-hero-subtitle {
    left: 7.1% !important;
    width: 36.5% !important;
    max-width: none !important;
  }

  html body.tt-home-premium .tt-hero-actions .tt-hero-link {
    top: calc(55.1% + max(52px, 7.2%) + clamp(14px, 3%, 32px)) !important;
  }
}

@media (min-width: 768px) and (max-width: 1120px) and (orientation: landscape) {
  html body.tt-home-premium .tt-hero-subtitle {
    left: 6.8% !important;
    width: 38% !important;
  }

  html body.tt-home-premium .tt-hero-actions .tt-hero-link {
    top: calc(55.2% + max(52px, 7.2%) + clamp(9px, 2%, 14px)) !important;
  }
}

@media (min-width: 768px) and (max-width: 1120px) and (orientation: portrait) {
  html body.tt-home-premium .tt-hero-subtitle,
  html body.tt-home-premium .tt-hero-actions .tt-hero-cta,
  html body.tt-home-premium .tt-hero-actions .tt-hero-link {
    left: 29.5% !important;
    width: 41% !important;
    max-width: none !important;
  }

  html body.tt-home-premium .tt-hero-actions .tt-hero-link {
    top: calc(76% + max(52px, 5.2%) + clamp(12px, 3.6%, 36px)) !important;
  }
}
