/* Landings de Plan de Ahorro 2026 (templates/landing_2026_plan.html.twig).
   El template pone el formulario, el modal de términos y el footer de Yamaha Plan; la cabecera y el cuerpo
   vienen del backadmin y usan las clases de acá (yp-*) más las de las landings de modelo
   (landing-2024-fzx, fascino-v2, fichatecnica, vertical_slider), que se ajustan al final.
   Medidas tomadas del diseño del Plan NMAX a 1920px de ancho. */

@font-face {
  font-family: "Estricta";
  src: url("/imagenes/yamahaplan-2026/fonts/Estricta.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estricta";
  src: url("/imagenes/yamahaplan-2026/fonts/Estricta-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Futura Std";
  src: url("/imagenes/crypton-finn-2026/plan/fonts/FuturaStdBook.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --yp-azul: #0a1ea0;
  --yp-azul-claro: #0f3fe0;
  /* Franja del formulario y botones: colores medidos en el diseño (arriba y abajo de la franja). */
  --yp-degrade: linear-gradient(180deg, #01033c 0%, #0029d9 100%);
  --yp-degrade-fin: #012adc;
  --yp-gris: #e8e7e8;
  --yp-texto: #252525;
  --yp-titulos: "Estricta", "Roboto Condensed", Arial, sans-serif;
  --yp-cuerpo: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

body {
  background: #fff !important;
}

.yp-landing {
  color: var(--yp-texto);
  font-family: var(--yp-cuerpo);
  overflow-x: hidden;
}

/* ---------- Header ---------- */
.yp-hero {
  /* fascino-v2 le pone margin-bottom: 3rem !important a todo <header> por debajo de 992px */
  margin-bottom: 0 !important;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1920 / 644;
  background-color: #111;
}

.yp-hero__bg,
.yp-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.yp-hero__nav {
  position: absolute;
  top: 3.6%;
  left: 13.2%;
  right: 13.2%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.yp-hero__marca {
  width: 8.6vw;
  max-width: 165px;
}

.yp-hero__garantia {
  width: 5.5vw;
  max-width: 106px;
}

/* Las piezas del claim van apiladas y centradas sobre el 34% del ancho, como en el arte. */
.yp-hero__claim {
  position: absolute;
  top: 23%;
  left: 31%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.yp-hero__claim picture {
  display: block;
  line-height: 0;
}

.yp-hero__claim img {
  max-width: none;
  height: auto;
}

.yp-hero__nuevo {
  width: 7.8vw;
}

.yp-hero__logo {
  width: 20vw;
  margin-top: 0.95vw;
}

.yp-hero__frase {
  width: 14.4vw;
  margin-top: 1.3vw;
}

.yp-hero__precio {
  width: 16vw;
  margin-top: 1.7vw;
}

@media (max-width: 767px) {
  .yp-hero {
    aspect-ratio: 480 / 819;
  }

  .yp-hero__nav {
    top: 2.8%;
    left: 5%;
    right: 6%;
  }

  .yp-hero__marca {
    width: 28vw;
  }

  .yp-hero__garantia {
    width: 18vw;
  }

  .yp-hero__claim {
    top: 14%;
    left: 50%;
  }

  .yp-hero__nuevo {
    width: 26vw;
  }

  .yp-hero__logo {
    width: 64vw;
    margin-top: 3vw;
  }

  .yp-hero__frase {
    width: 47vw;
    margin-top: 3.5vw;
  }

  .yp-hero__precio {
    width: 52vw;
    margin-top: 3.5vw;
  }
}

/* ---------- Formulario ---------- */
/* Franja azul con el título; fascino-v2 fija el padding con !important. */
.yp-landing .ymh-form-full-col-1 {
  position: relative;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  background: var(--yp-degrade) !important;
}

/* Flecha hacia el formulario: ahora-12 la arma con un cuadrado rotado y landing-2024-fzx la pinta de
   #0745cb con !important. Rotado, su mitad de arriba se ve sobre el gradiente como un rombo: acá es un
   triángulo (clip-path) que cuelga debajo de la franja, del color del final del gradiente. */
.yp-landing .ymh-form-full-col-1.form-grey::after {
  bottom: -19px; /* 1px encima de la franja: tapa la costura */
  width: 40px;
  height: 20px;
  background: var(--yp-degrade-fin) !important;
  transform: none;
  -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 1;
}

.yp-landing .ymh-form-full-col-1 h3 {
  color: #fff !important;
  font-family: var(--yp-titulos) !important;
  font-weight: 700;
  text-transform: uppercase;
}

.yp-landing .ymh-form-full-col-1 h4 {
  color: #fff !important;
  font-family: var(--yp-cuerpo) !important;
  font-weight: 400;
}

.yp-landing #contacto_form .btn-gral {
  background: var(--yp-degrade) !important;
  border: 0 !important;
  color: #fff !important;
  font-family: var(--yp-titulos) !important;
  font-weight: 700;
  text-transform: uppercase;
}

/* Check de términos (obligatorio en el plan). */
.yp-landing .ymh-form-full .yp-terminos {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
}

.yp-landing .ymh-form-full .yp-terminos a {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Franja con los datos del plan ---------- */
/* Medidas de la franja de la plan Crypton Finn, con las dos líneas iguales y en bold. */
.yp-oferta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 8vw, 140px);
  padding: 12px 20px 60px;
  background: #fff;
  color: #111;
  text-transform: uppercase;
}

.yp-oferta__item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.yp-oferta__item img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.yp-oferta__item span {
  display: flex;
  flex-direction: column;
  font-family: var(--yp-titulos);
  line-height: 1;
}

.yp-oferta__item b,
.yp-oferta__item small {
  font-size: 28px;
  font-weight: 700;
}

.yp-oferta__item b + small,
.yp-oferta__item small + b {
  margin-top: 4px;
}

@media (max-width: 767px) {
  .yp-oferta {
    gap: 10px;
    justify-content: space-between;
    padding: 0 12px 48px;
  }

  .yp-oferta__item {
    gap: 6px;
  }

  .yp-oferta__item img {
    width: 24px;
    height: 24px;
  }

  .yp-oferta__item b,
  .yp-oferta__item small {
    font-size: 15px;
  }
}

/* ---------- Moto principal con el logo de fondo y los logos de tecnología ---------- */
.yp-modelo {
  --yp-logo-ancho: min(720px, 80vw);
  padding-top: calc(var(--yp-logo-ancho) * 0.2);
  background-image: var(--yp-logo-fondo);
  background-position: top center;
  background-size: var(--yp-logo-ancho) auto;
  background-repeat: no-repeat;
  text-align: center;
}

.yp-modelo picture {
  position: relative;
  z-index: 1;
  display: block;
}

.yp-modelo__moto {
  width: 650px;
  max-width: 92%;
  height: auto;
}

/* La franja gris arranca a la altura de las ruedas y la moto queda por encima. */
.yp-modelo__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px clamp(10px, 2.5vw, 40px);
  margin-top: clamp(-60px, -3.5vw, -24px);
  padding: clamp(40px, 5vw, 90px) 20px clamp(24px, 3vw, 50px);
  background: var(--yp-gris);
}

.yp-modelo__logos img {
  width: clamp(140px, 12.5vw, 245px);
  height: auto;
}

@media (max-width: 767px) {
  .yp-modelo__logos {
    gap: 6px 14px;
  }

  .yp-modelo__logos img {
    width: calc(50% - 14px);
    max-width: 155px;
  }
}

/* ---------- Título y texto de presentación ---------- */
.yp-intro {
  padding: 50px 0 60px;
  text-align: center;
}

.yp-intro__titulo {
  margin-bottom: 20px;
  color: #222;
  font-family: var(--yp-titulos);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
}

.yp-intro__texto {
  max-width: 1140px;
  margin: 0 auto;
  color: #333;
  font-family: var(--yp-cuerpo);
  font-size: 18px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .yp-intro {
    padding: 40px 0 30px;
  }

  .yp-intro__titulo {
    font-size: 26px;
  }

  .yp-intro__texto {
    font-size: 14px;
  }
}

/* ---------- Highlights (slider vertical) ---------- */
.yp-landing .ymh-vertical {
  margin-top: 5rem;
}

.yp-landing .ymh-vertical-gallery .swiper-slide {
  background-image: var(--yp-bg-desktop);
}

.yp-landing .ymh-vertical-gallery .ymh-vertical-content h2 {
  font-family: var(--yp-titulos) !important;
  font-weight: 700;
  text-transform: uppercase;
}

.yp-landing .ymh-vertical-gallery .ymh-vertical-content p {
  font-family: var(--yp-cuerpo);
}

@media (max-width: 767px) {
  .yp-landing .swiper-container.ymh-vertical-gallery {
    height: 104vw !important;
  }

  .yp-landing .ymh-vertical-gallery .swiper-slide {
    background-image: var(--yp-bg-mobile);
  }
}

@media (max-width: 991px) {
  .yp-landing .ymh-vertical .ymh-vertical-content {
    background: #000000c7;
    margin-bottom: 5rem;
  }
}

/* ---------- Ficha técnica ---------- */
.yp-landing .titulo-ficha-tecnica {
  font-family: var(--yp-titulos) !important;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
}

.yp-landing #ficha-tecnica .nav-tabs {
  flex-wrap: nowrap;
  gap: 12px;
  border-bottom: 0;
}

.yp-landing #ficha-tecnica .nav-tabs .nav-item {
  flex: 1 1 auto;
}

.yp-landing #ficha-tecnica .nav-tabs .nav-link {
  width: 100%;
  padding: 6px 12px;
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  background: #ececec;
  color: #7a7a7a;
  font-family: var(--yp-titulos);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.yp-landing #ficha-tecnica .nav-tabs .nav-link.active {
  background: #111;
  color: #fff;
}

.yp-landing .ymh-table-ficha .ficha-tipo,
.yp-landing .ymh-table-ficha .ficha-tipo strong {
  font-family: var(--yp-cuerpo) !important;
  font-weight: 700;
  text-transform: uppercase;
}

/* fichatecnica_rojo.css fija 14px con !important. */
.yp-landing .ymh-table-ficha .ficha-caracteristica {
  font-family: var(--yp-cuerpo) !important;
  font-size: 16px !important;
}

@media (max-width: 991px) {
  .yp-landing #ficha-tecnica .img-ficha-tecnica {
    float: none;
    max-width: 100%;
  }

  .yp-landing #ficha-tecnica .col-md-5 {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .yp-landing .titulo-ficha-tecnica {
    font-size: 32px;
  }

  .yp-landing #ficha-tecnica .nav-tabs {
    gap: 6px;
  }

  .yp-landing #ficha-tecnica .nav-tabs .nav-link {
    padding: 6px 4px;
    font-size: 12px;
  }
}

/* ---------- Galería ---------- */
.yp-landing .ymh-fascino-grid-items > div {
  background-image: var(--yp-bg-desktop);
  cursor: pointer;
}

@media (max-width: 767px) {
  .yp-landing .ymh-fascino-grid-items > div {
    background-image: var(--yp-bg-mobile);
  }
}

/* ---------- 360 ---------- */
.yp-360 {
  padding: 20px 20px 50px;
  text-align: center;
}

.yp-360 .cloudimage-360 {
  /* Las fotos son de 1200x675 con aire alrededor de la moto: a este ancho la moto queda como en el diseño. */
  max-width: 1150px;
  margin: 0 auto;
  cursor: grab;
}

.yp-360__icono {
  margin-top: 10px;
  color: #6f6f6f;
}

@media (max-width: 767px) {
  /* En mobile el aire blanco de las fotos se come la mitad del ancho: el visor se ensancha y se recorta. */
  .yp-360 {
    overflow: hidden;
  }

  /* La librería le pone width: 100% inline. */
  .yp-360 .cloudimage-360 {
    width: 140% !important;
    max-width: none;
    margin-left: -20%;
  }

  .yp-360__icono svg {
    width: 90px;
    height: auto;
  }
}

.yp-360__ayuda {
  display: block;
  margin-top: 6px;
  color: #8a8a8a;
  font-size: 13px;
}

/* ---------- Colores y cierre ---------- */
/* La base le pone una textura a #yamaha-colores; el plan va en gris plano. */
.yp-landing .yp-colores {
  padding: 60px 0;
  background: var(--yp-gris) !important;
}

.yp-landing .yp-colores .ymh-producto-colores {
  margin-top: 0 !important;
}

/* La primera imagen queda en flujo (da la altura al wrapper) y el resto va absoluta
   centrada; sin display:block el margin auto no la centra. */
.yp-landing .img-colores-wrapper2 img:first-of-type {
  display: block;
}

.yp-cierre {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.yp-cierre picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.yp-cierre img {
  max-width: 100%;
  height: auto;
}

/* Tamaños del cierre de la Crypton Finn (logo, frase y precio de ~300px). */
.yp-cierre__nuevo {
  width: 130px;
}

.yp-cierre__logo {
  width: 300px;
  margin-top: 12px;
}

.yp-cierre__frase {
  width: 250px;
  margin-top: 22px;
}

.yp-cierre__precio {
  width: 280px;
  margin-top: 24px;
}

.yp-cierre__cta,
.yp-cierre__cta:visited {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 48px;
  background: var(--yp-degrade);
  color: #fff;
  font-family: var(--yp-titulos);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.yp-cierre__cta:hover,
.yp-cierre__cta:focus {
  color: #fff;
  filter: brightness(1.2);
}

@media (max-width: 991px) {
  .yp-cierre {
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .yp-cierre__nuevo {
    width: 26vw;
  }

  .yp-cierre__logo {
    width: 58vw;
  }

  .yp-cierre__frase {
    width: 50vw;
    margin-top: 16px;
  }

  .yp-cierre__precio {
    width: 56vw;
    margin-top: 18px;
  }

  .yp-cierre__cta {
    margin-top: 24px;
    padding: 9px 36px;
    font-size: 16px;
  }
}

/* ---------- Footer de Yamaha Plan ---------- */
.yp-landing .yp-footer {
  display: grid;
  grid-template-columns: 163px minmax(0, 1060px);
  gap: 107px;
  justify-content: center;
  align-items: start;
  padding: 72px max(24px, calc((100% - 1330px) / 2)) 30px;
  background: #313131;
  color: #fff;
  font-family: "Futura Std", "Futura", "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  line-height: 16px;
}

.yp-landing .yp-footer__logos {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.yp-landing .yp-footer__logos img {
  display: block;
  width: 163px;
  height: auto;
  margin: 0;
}

/* landing-2024-fzx le pone Estricta a todo <p>: los legales van en la Futura del resto del footer. */
.yp-landing .yp-footer__legal p,
.yp-landing .yp-footer__legal a {
  font-family: inherit !important;
}

.yp-landing .yp-footer__legal p {
  margin: 0;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
}

.yp-landing .yp-footer__legal p + p {
  margin-top: 10px;
}

.yp-landing .yp-footer__legal a {
  color: #fff;
  text-decoration: underline;
}

.yp-landing .yp-footer__bottom {
  display: flex;
  align-items: center;
  margin-top: 32px;
}

.yp-landing .yp-footer__social {
  display: flex;
  align-items: center;
  gap: 9px;
}

.yp-landing .yp-footer__social > span {
  width: 70px;
}

.yp-landing .yp-footer__social img {
  display: block;
  width: 32px;
  height: 32px;
}

.yp-landing .yp-footer__bottom small {
  margin-left: 32px;
  color: #fff;
  font-size: 11px;
}

@media (max-width: 991px) {
  .yp-landing .yp-footer {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 42px 25px;
  }

  .yp-landing .yp-footer__logos {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .yp-landing .yp-footer__logos img {
    width: min(42vw, 130px);
  }

  .yp-landing .yp-footer__legal p {
    font-size: 10px;
    line-height: 15px;
  }

  .yp-landing .yp-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-top: 28px;
  }

  .yp-landing .yp-footer__social {
    flex-wrap: wrap;
  }

  .yp-landing .yp-footer__bottom small {
    margin-left: 0;
    font-size: 10px;
  }
}

/* ---------- Modal de términos ---------- */
.yp-landing .terms-modal {
  max-height: 88vh;
  overflow: hidden;
  border: 1px solid #4082fd;
  border-radius: 0;
  background: #fff;
  color: #252525;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.yp-landing .terms-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid #e3e3e3;
}

.yp-landing .terms-title {
  margin: 0;
  color: #252525;
  font-family: var(--yp-titulos);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.yp-landing .terms-close-custom {
  padding: 2px;
  border: 0;
  background: transparent;
  color: #252525;
  font-size: 34px;
  line-height: 0.75;
  cursor: pointer;
}

.yp-landing .terms-body {
  padding: 24px 28px 28px;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.55;
}

.yp-landing .terms-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .yp-landing .terms-header {
    padding: 18px 16px 15px;
  }

  .yp-landing .terms-title {
    font-size: 17px;
  }

  .yp-landing .terms-body {
    padding: 18px 16px 22px;
    font-size: 14px;
  }
}

.swiper-slide {
  cursor: pointer;
}

.swiper-container-wrapper {
  height: auto !important;
}
