/* =========================================================
   Morada Andina Timeline – Frontend Styles
   ========================================================= */

    /* ========================
       BASE / WRAPPER
    ======================== */

    .ctl-scroll-container {
      position: relative;
      /* height set by JS: totalSlides * 100vh */
    }

    .ctl-wrapper {
      position: sticky !important;
      top: 0 !important;
      width: 100% !important;
      height: 100vh !important;
      overflow: hidden !important;
    }

    .ctl-track {
      display: flex;
      height: 100%;
      transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
      will-change: transform;
    }

    .ctl-slide {
      min-width: 100vw;
      height: 100%;
      position: relative;
      display: flex;
      overflow: hidden;
    }

    .ctl-inner {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      padding-top: 130px;
      display: flex;
      position: relative;
    }

    /* ========================
       SLIDE 1 - 1982 - Origen
    ======================== */
    .ctl-slide-1 {
      background: #B5562D;
      position: relative;
    }

    .ctl-slide-1 .ctl-content {
      position: absolute;
      bottom: 30px;
      left: 42px;
      right: calc(60% + 55px);
      display: flex;
      flex-direction: column;
      z-index: 2;
      gap: 12px;
    }

    .ctl-slide-1 .ctl-year {
      color: rgba(255, 255, 255, 0.20);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: clamp(100px, 9vw, 170px);
      font-style: normal;
      font-weight: 400;
      line-height: 1;
      position: absolute;
      top: 130px;
      left: 40px;
      z-index: 1;
      pointer-events: none;
    }

    .ctl-slide-1 .ctl-title {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 40px;
      font-weight: 400;
      line-height: 120%;
      margin: 0;
    }

    .ctl-slide-1 .ctl-subtitle {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 120%;
    }

    .ctl-slide-1 .ctl-description {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 120%;
    }

    .ctl-slide-1 .ctl-image {
      width: 60%;
      position: relative;
      margin-left: auto;
      z-index: 2;
    }

    .ctl-slide-1 .ctl-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* ========================
       SLIDE 2 - 1984 - Primera Obra
    ======================== */
    .ctl-slide-2 {
      background: #EFEFEF;
      position: relative;
    }

    .ctl-slide-2 .ctl-image {
      width: 645px;
      min-width: 645px;
      height: 432px;
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
    }

    .ctl-slide-2 .ctl-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      aspect-ratio: 106/71;
    }

    .ctl-slide-2 .ctl-content {
      position: absolute;
      top: 130px;
      right: 53px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
      z-index: 2;
      max-width: 435px;
    }

    .ctl-slide-2 .ctl-content > * {
      margin: 0;
      padding: 0;
    }

    .ctl-slide-2 .ctl-year {
      color: rgba(181, 86, 45, 0.20);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: clamp(130px, 11.5vw, 220px);
      font-style: normal;
      font-weight: 400;
      line-height: 1;
      position: absolute;
      bottom: 20px;
      right: 53px;
      z-index: 1;
      pointer-events: none;
    }

    .ctl-slide-2 .ctl-title {
      color: #B5562D;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 40px;
      font-weight: 400;
      line-height: 45.078px;
      margin: 0;
    }

    .ctl-slide-2 .ctl-subtitle {
      color: #B5562D;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 120%;
    }

    .ctl-slide-2 .ctl-description {
      color: #B5562D;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 120%;
      max-width: 435px;
    }

    /* ========================
       SLIDES 3-10 (backgrounds)
    ======================== */
    .ctl-slide-3 { background: #C9C9C9; }
    .ctl-slide-4 { background: #B5562D; }
    .ctl-slide-5 { background: #5D3C2E; }
    .ctl-slide-6 { background: #4F1C06; }
    .ctl-slide-7 {
      background-size: cover;
      background-position: 50%;
      background-repeat: no-repeat;
    }
    .ctl-slide-8 { background: #F0ECEA; }
    .ctl-slide-9 { background: #4F1C06; }
    .ctl-slide-10 { background: #F0ECEA; }

    /* ========================
       SLIDE 3 - 1985-1988 - Expansión
    ======================== */
    .ctl-slide-3 .ctl-inner {
      flex-direction: column;
    }

    .ctl-slide-3 .ctl-top {
      position: relative;
      display: flex;
      align-items: flex-start;
      padding: 0 50px 0 50px;
    }

    .ctl-slide-3 .ctl-content {
      display: flex;
      flex-direction: column;
      gap: 12px;
      z-index: 2;
      max-width: 380px;
      flex-shrink: 0;
    }

    .ctl-slide-3 .ctl-title {
      color: #76716A;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 40px;
      font-weight: 400;
      line-height: 45.078px;
      margin: 0;
      align-self: stretch;
    }

    .ctl-slide-3 .ctl-subtitle {
      color: rgba(49, 49, 49, 0.80);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 120%;
      align-self: stretch;
    }

    .ctl-slide-3 .ctl-description {
      color: rgba(49, 49, 49, 0.80);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 120%;
      align-self: stretch;
    }

    .ctl-slide-3 .ctl-year {
      color: rgba(0, 0, 0, 0.12);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: clamp(90px, 7.5vw, 140px);
      font-style: normal;
      font-weight: 400;
      line-height: 1;
      pointer-events: none;
      margin-left: auto;
      white-space: nowrap;
    }

    .ctl-slide-3 .ctl-images {
      display: flex;
      gap: 30px;
      padding: 0 50px 30px 50px;
      margin-top: auto;
    }

    .ctl-slide-3 .ctl-images img {
      flex: 1;
      min-width: 0;
      height: clamp(280px, 35vh, 354px);
      aspect-ratio: 446/347;
      object-fit: cover;
    }

    /* ========================
       SLIDE 4 - 1988 - Consolidación
    ======================== */
    .ctl-slide-4 {
      position: relative;
    }

    .ctl-slide-4 .ctl-content {
      position: absolute;
      top: 130px;
      left: 34px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      z-index: 2;
      max-width: 451px;
    }

    .ctl-slide-4 .ctl-title {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 40px;
      font-weight: 400;
      line-height: 45.078px;
      margin: 0;
    }

    .ctl-slide-4 .ctl-subtitle {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 120%;
    }

    .ctl-slide-4 .ctl-description {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 120%;
    }

    .ctl-slide-4 .ctl-year {
      color: rgba(235, 214, 204, 0.40);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: clamp(100px, 9vw, 170px);
      font-style: normal;
      font-weight: 400;
      line-height: 1;
      position: absolute;
      bottom: 15px;
      right: calc(60% + 52px);
      z-index: 1;
      pointer-events: none;
    }

    .ctl-slide-4 .ctl-image {
      width: 60%;
      position: relative;
      margin-left: auto;
    }

    .ctl-slide-4 .ctl-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* ========================
       SLIDE 5 - 1992 - Innovación
    ======================== */
    .ctl-slide-5 {
      position: relative;
    }

    .ctl-slide-5 .ctl-image {
      width: 50%;
      position: relative;
    }

    .ctl-slide-5 .ctl-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
    }

    .ctl-slide-5 .ctl-right {
      width: 50%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      position: relative;
      padding: 0 50px 20px 50px;
    }

    .ctl-slide-5 .ctl-content {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 20px;
      z-index: 2;
      max-width: 591px;
    }

    .ctl-slide-5 .ctl-title {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 40px;
      font-weight: 400;
      line-height: 45.078px;
      margin: 0;
    }

    .ctl-slide-5 .ctl-subtitle {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 120%;
      margin: 0;
    }

    .ctl-slide-5 .ctl-description {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 120%;
      margin: 0;
    }

    .ctl-slide-5 .ctl-year {
      color: rgba(255, 255, 255, 0.60);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: clamp(100px, 9vw, 170px);
      font-style: normal;
      font-weight: 400;
      line-height: 1;
      z-index: 1;
      pointer-events: none;
    }

    /* ========================
       SLIDE 6 - 1997 - Tecnología
    ======================== */
    .ctl-slide-6 {
      position: relative;
    }

    .ctl-slide-6 .ctl-left {
      width: 60%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-start;
      padding: 0 34px 20px 50px;
      position: relative;
    }

    .ctl-slide-6 .ctl-content {
      display: flex;
      flex-direction: column;
      gap: 20px;
      z-index: 2;
      max-width: 451px;
    }

    .ctl-slide-6 .ctl-title {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 40px;
      font-weight: 400;
      line-height: 45.078px;
      margin: 0;
    }

    .ctl-slide-6 .ctl-subtitle {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 120%;
      margin: 0;
    }

    .ctl-slide-6 .ctl-description {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 120%;
      margin: 0;
    }

    .ctl-slide-6 .ctl-year {
      color: rgba(235, 214, 204, 0.40);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: clamp(100px, 9vw, 170px);
      font-style: normal;
      font-weight: 400;
      line-height: 1;
      align-self: flex-end;
      margin-right: 172px;
      pointer-events: none;
    }

    .ctl-slide-6 .ctl-image {
      width: 40%;
      position: relative;
    }

    .ctl-slide-6 .ctl-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* ========================
       SLIDE 7 - 2005 - Estrategia
    ======================== */
    .ctl-slide-7 {
      position: relative;
    }

    .ctl-slide-7 .ctl-inner {
      flex-direction: column;
      justify-content: space-between;
      padding: 130px 50px 15px 50px;
    }

    .ctl-slide-7 .ctl-content {
      display: flex;
      flex-direction: column;
      gap: 20px;
      z-index: 2;
      max-width: 451px;
    }

    .ctl-slide-7 .ctl-title {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 40px;
      font-weight: 400;
      line-height: 45.078px;
      margin: 0;
    }

    .ctl-slide-7 .ctl-subtitle {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 120%;
      margin: 0;
    }

    .ctl-slide-7 .ctl-description {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 120%;
      margin: 0;
    }

    .ctl-slide-7 .ctl-year {
      color: rgba(255, 255, 255, 0.60);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: clamp(140px, 12vw, 240px);
      font-style: normal;
      font-weight: 400;
      line-height: 1;
      pointer-events: none;
      z-index: 2;
      margin-bottom: 0;
    }

    /* ========================
       SLIDE 8 - 2007-2008 - Impacto social
    ======================== */
    .ctl-slide-8 .ctl-inner {
      flex-direction: column;
    }

    .ctl-slide-8 .ctl-top {
      position: relative;
      display: flex;
      align-items: flex-start;
      padding: 0 50px 0 50px;
    }

    .ctl-slide-8 .ctl-content {
      display: flex;
      flex-direction: column;
      gap: 12px;
      z-index: 2;
      max-width: 380px;
      flex-shrink: 0;
    }

    .ctl-slide-8 .ctl-title {
      color: #76716A;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 40px;
      font-weight: 400;
      line-height: 45.078px;
      margin: 0;
      align-self: stretch;
    }

    .ctl-slide-8 .ctl-subtitle {
      color: rgba(49, 49, 49, 0.80);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 120%;
      align-self: stretch;
    }

    .ctl-slide-8 .ctl-description {
      color: rgba(49, 49, 49, 0.80);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 120%;
      align-self: stretch;
    }

    .ctl-slide-8 .ctl-year {
      color: rgba(0, 0, 0, 0.12);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: clamp(90px, 7.5vw, 140px);
      font-style: normal;
      font-weight: 400;
      line-height: 1;
      pointer-events: none;
      margin-left: auto;
      white-space: nowrap;
    }

    .ctl-slide-8 .ctl-images {
      display: flex;
      gap: 30px;
      padding: 0 50px 30px 50px;
      margin-top: auto;
    }

    .ctl-slide-8 .ctl-images img {
      flex: 1;
      min-width: 0;
      height: clamp(280px, 35vh, 354px);
      aspect-ratio: 446/347;
      object-fit: cover;
    }

    /* ========================
       SLIDE 9 - 2015 - Gobernanza
    ======================== */
    .ctl-slide-9 {
      position: relative;
    }

    .ctl-slide-9 .ctl-left {
      width: 35%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-start;
      padding: 0 0 20px 40px;
      position: relative;
      overflow: visible;
    }

    .ctl-slide-9 .ctl-content {
      display: flex;
      flex-direction: column;
      gap: 16px;
      z-index: 2;
    }

    .ctl-slide-9 .ctl-title {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 40px;
      font-weight: 400;
      line-height: 45.078px;
      margin: 0;
    }

    .ctl-slide-9 .ctl-subtitle {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 120%;
      margin: 0;
    }

    .ctl-slide-9 .ctl-description {
      color: #FFF;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 120%;
      margin: 0;
      max-width: 451px;
    }

    .ctl-slide-9 .ctl-year {
      color: rgba(235, 214, 204, 0.40);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: clamp(110px, 10vw, 200px);
      font-style: normal;
      font-weight: 400;
      line-height: 1;
      pointer-events: none;
      z-index: 2;
      position: absolute;
      bottom: 0;
      left: 10%;
    }

    .ctl-slide-9 .ctl-image {
      width: 65%;
      position: relative;
    }

    .ctl-slide-9 .ctl-image img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: right;
    }

    /* ========================
       SLIDE 10 - 2019-2026 - Legado
    ======================== */
    .ctl-slide-10 {
      position: relative;
    }

    .ctl-slide-10 .ctl-left {
      width: 40%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-start;
      padding: 0 0 25px 50px;
    }

    .ctl-slide-10 .ctl-content {
      display: flex;
      flex-direction: column;
      gap: 12px;
      z-index: 2;
    }

    .ctl-slide-10 .ctl-title {
      color: #76716A;
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 40px;
      font-weight: 400;
      line-height: 45.078px;
      margin: 0;
    }

    .ctl-slide-10 .ctl-subtitle {
      color: rgba(49, 49, 49, 0.80);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 120%;
      margin: 0;
    }

    .ctl-slide-10 .ctl-description {
      color: rgba(49, 49, 49, 0.80);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 120%;
      margin: 0;
      max-width: 451px;
    }

    .ctl-slide-10 .ctl-year {
      color: rgba(0, 0, 0, 0.20);
      font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
      font-size: clamp(60px, 4.9vw, 94px);
      font-style: normal;
      font-weight: 400;
      line-height: 1;
      pointer-events: none;
      white-space: nowrap;
    }

    .ctl-slide-10 .ctl-image {
      width: 60%;
      padding: 30px 40px 25px 0;
      box-sizing: border-box;
    }

    .ctl-slide-10 .ctl-image img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* ========================
       NAVIGATION ARROWS
    ======================== */
    .ctl-nav-arrows {
      position: absolute;
      bottom: 15px;
      right: 50px;
      display: flex;
      gap: 12px;
      z-index: 30;
    }

    .ctl-wrapper .ctl-nav-arrow {
      width: 40px !important;
      height: 40px !important;
      border: 1px solid rgba(255, 255, 255, 0.3) !important;
      border-radius: 50% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      cursor: pointer !important;
      transition: all 0.3s ease !important;
      background: transparent !important;
      color: rgba(255, 255, 255, 0.6) !important;
      padding: 0 !important;
      margin: 0 !important;
      outline: none !important;
      box-shadow: none !important;
      line-height: 1 !important;
      font-size: inherit !important;
      -webkit-appearance: none !important;
      appearance: none !important;
    }

    .ctl-wrapper .ctl-nav-arrow:hover,
    .ctl-wrapper .ctl-nav-arrow:focus {
      border-color: #fff !important;
      color: #fff !important;
      background: rgba(255, 255, 255, 0.1) !important;
      box-shadow: none !important;
      outline: none !important;
    }

    .ctl-wrapper .ctl-nav-arrow.ctl-disabled {
      opacity: 0.2 !important;
      pointer-events: none !important;
    }

    .ctl-wrapper .ctl-nav-arrow svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    /* ========================
       ANIMATIONS
    ======================== */
    /* Textos: revelado de abajo hacia arriba */
    .ctl-slide .ctl-content > * {
      opacity: 0;
      clip-path: inset(100% 0 0 0);
      transition: opacity 0.6s ease, clip-path 0.6s ease;
    }

    .ctl-slide.ctl-active .ctl-content > *:nth-child(1) { opacity: 1; clip-path: inset(0 0 0 0); transition-delay: 0.2s; }
    .ctl-slide.ctl-active .ctl-content > *:nth-child(2) { opacity: 1; clip-path: inset(0 0 0 0); transition-delay: 0.4s; }
    .ctl-slide.ctl-active .ctl-content > *:nth-child(3) { opacity: 1; clip-path: inset(0 0 0 0); transition-delay: 0.6s; }

    /* Año: fade in suave */
    .ctl-slide .ctl-year {
      opacity: 0;
      transition: opacity 0.8s ease;
    }

    .ctl-slide.ctl-active .ctl-year {
      opacity: 1;
      transition-delay: 0.1s;
    }

    /* Imágenes: zoom-in cinematográfico */
    .ctl-slide .ctl-image img,
    .ctl-slide .ctl-images img {
      opacity: 0;
      transform: scale(1.12);
      transition: opacity 1s ease, transform 1.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    }

    .ctl-slide.ctl-active .ctl-image img {
      opacity: 1;
      transform: scale(1);
      transition-delay: 0.1s;
    }

    .ctl-slide.ctl-active .ctl-images img:nth-child(1) {
      opacity: 1;
      transform: scale(1);
      transition-delay: 0.15s;
    }

    .ctl-slide.ctl-active .ctl-images img:nth-child(2) {
      opacity: 1;
      transform: scale(1);
      transition-delay: 0.35s;
    }

    .ctl-slide.ctl-active .ctl-images img:nth-child(3) {
      opacity: 1;
      transform: scale(1);
      transition-delay: 0.55s;
    }

    /* ========================
       MOBILE
    ======================== */
    @media (max-width: 768px) {

      /* Mobile: no tall container, no sticky – swipe-driven carousel */
      .ctl-scroll-container {
        position: relative !important;
        height: auto !important;   /* Override JS inline height */
        margin: 0 !important;
        padding: 0 !important;
      }

      .ctl-wrapper {
        position: relative !important;
        height: 85vh !important;
        height: 85dvh !important;
        overflow: hidden !important;
      }

      .ctl-track {
        transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
      }

      .ctl-slide {
        min-width: 100vw;
        width: 100vw;
        height: 100%;
        flex-direction: column;
      }

      .ctl-inner {
        padding-top: 0;
        flex-direction: column;
      }

      .ctl-nav-arrows {
        display: none;
      }

      /* Reset global año en mobile */
      .ctl-slide .ctl-year,
      .ctl-slide[class*="ctl-slide-"] .ctl-year,
      .ctl-slide[class*="ctl-slide-"] .ctl-left .ctl-year,
      .ctl-slide[class*="ctl-slide-"] .ctl-right .ctl-year {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        font-size: clamp(70px, 25vw, 110px) !important;
        line-height: 1;
        padding: 0 !important;
        display: block !important;
        width: fit-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 20px !important;
      }

      /* Fechas rango: pegadas a la derecha */
      .ctl-slide .ctl-year.ctl-year-range,
      .ctl-slide[class*="ctl-slide-"] .ctl-year.ctl-year-range,
      .ctl-slide[class*="ctl-slide-"] .ctl-left .ctl-year.ctl-year-range,
      .ctl-slide[class*="ctl-slide-"] .ctl-right .ctl-year.ctl-year-range {
        width: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: right !important;
        padding: 0 24px !important;
      }

      .ctl-slide .ctl-title {
        font-size: 28px;
        line-height: 120%;
      }

      .ctl-slide .ctl-subtitle {
        font-size: 15px;
      }

      .ctl-slide .ctl-description {
        font-size: 14px;
        max-width: none !important;
      }

      /* Imagen mobile genérica */
      .ctl-slide .ctl-image {
        width: 100% !important;
        height: 200px;
        min-width: unset;
        position: static !important;
        transform: none !important;
        padding: 0 !important;
        margin: 0;
        box-sizing: border-box;
      }

      .ctl-slide .ctl-image img {
        object-fit: cover;
      }

      /* Gap uniforme para contenido */
      .ctl-slide .ctl-content {
        gap: 12px !important;
      }

      .ctl-slide .ctl-content > * {
        margin: 0 !important;
        padding: 0;
      }

      /* ---- SLIDE 1 ---- */
      .ctl-slide-1 .ctl-image { order: -2; z-index: auto !important; width: 100% !important; margin-left: 0 !important; }
      .ctl-slide-1 .ctl-year { position: static !important; order: -1; z-index: auto !important; padding-top: 20px; top: auto !important; left: auto !important; }
      .ctl-slide-1 .ctl-content {
        position: static !important;
        bottom: auto !important; left: auto !important; right: auto !important;
        padding: 0 24px 40px;
      }

      /* ---- SLIDE 2 ---- */
      .ctl-slide-2 .ctl-image {
        order: -2;
        height: auto !important;
        padding: 50px 57px 0 0 !important;
      }
      .ctl-slide-2 .ctl-image img {
        height: auto;
        aspect-ratio: 106/71;
      }
      .ctl-slide-2 .ctl-year { position: static !important; order: -1; padding-top: 75px; bottom: auto !important; right: auto !important; }
      .ctl-slide-2 .ctl-content {
        position: static !important;
        top: auto !important; right: auto !important;
        padding: 0 24px 40px;
        max-width: none;
      }

      /* ---- SLIDE 3 (diagonal images) ---- */
      .ctl-slide-3 .ctl-top {
        flex-direction: column;
        padding: 0;
        order: -2;
      }
      .ctl-slide-3 .ctl-top .ctl-year {
        order: -1;
        white-space: normal !important;
        margin-left: 0 !important;
        word-spacing: 100vw;
        font-size: 94.907px !important;
        font-weight: 300 !important;
        line-height: 94.733px !important;
        color: rgba(0, 0, 0, 0.20) !important;
        text-align: right;
        padding-top: 17px;
      }
      .ctl-slide-3 .ctl-top .ctl-year .ctl-year-dash {
        display: none;
      }
      .ctl-slide-3 .ctl-top .ctl-content {
        padding: 0 24px 0;
        max-width: none;
      }
      .ctl-slide-3 .ctl-images {
        order: 0;
        overflow: visible !important;
        position: relative;
        height: 260px;
        padding: 20px 24px 30px;
        gap: 0;
        margin-top: 0;
      }
      .ctl-slide-3 .ctl-images img {
        position: absolute !important;
        width: 58% !important;
        height: auto !important;
        min-width: unset !important;
        flex: none !important;
        aspect-ratio: auto;
      }
      .ctl-slide-3 .ctl-images img:nth-child(1) {
        top: 20px;
        left: 24px;
        z-index: 2;
      }
      .ctl-slide-3 .ctl-images img:nth-child(2) {
        top: 100px;
        right: 24px;
        left: auto !important;
        z-index: 1;
      }
      .ctl-slide-3 .ctl-images img:nth-child(3) {
        display: none !important;
      }
      .ctl-slide-3 .ctl-gallery-dots {
        display: none !important;
      }

      /* ---- SLIDE 8 (diagonal images, igual a slide 3) ---- */
      .ctl-slide-8 .ctl-top {
        flex-direction: column;
        padding: 0;
        order: -2;
      }
      .ctl-slide-8 .ctl-top .ctl-year {
        order: -1;
        white-space: normal !important;
        margin-left: 0 !important;
        word-spacing: 100vw;
        font-size: 94.907px !important;
        font-weight: 300 !important;
        line-height: 94.733px !important;
        color: rgba(0, 0, 0, 0.20) !important;
        text-align: right;
        padding-top: 17px;
      }
      .ctl-slide-8 .ctl-top .ctl-year .ctl-year-dash {
        display: none;
      }
      .ctl-slide-8 .ctl-top .ctl-content {
        padding: 0 24px 0;
        max-width: none;
      }
      .ctl-slide-8 .ctl-images {
        order: 0;
        overflow: visible !important;
        position: relative;
        height: 260px;
        padding: 20px 24px 30px;
        gap: 0;
        margin-top: 0;
      }
      .ctl-slide-8 .ctl-images img {
        position: absolute !important;
        width: 58% !important;
        height: auto !important;
        min-width: unset !important;
        flex: none !important;
        aspect-ratio: auto;
      }
      .ctl-slide-8 .ctl-images img:nth-child(1) {
        top: 20px;
        left: 24px;
        z-index: 2;
      }
      .ctl-slide-8 .ctl-images img:nth-child(2) {
        top: 100px;
        right: 24px;
        left: auto !important;
        z-index: 1;
      }
      .ctl-slide-8 .ctl-images img:nth-child(3) {
        display: none !important;
      }
      .ctl-slide-8 .ctl-gallery-dots {
        display: none !important;
      }

      .ctl-gallery-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 12px 0;
        order: -1;
      }

      .ctl-gallery-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        cursor: pointer;
        padding: 0;
        transition: background 0.3s;
      }

      .ctl-gallery-dot.ctl-dot-active {
        background: rgba(0, 0, 0, 0.6);
      }

      /* ---- SLIDE 4 (imagen de fondo, contenido abajo) ---- */
      .ctl-slide-4 {
        position: relative !important;
        overflow: hidden;
      }
      .ctl-slide-4 .ctl-inner {
        justify-content: flex-end;
      }
      .ctl-slide-4 .ctl-image {
        position: absolute !important;
        top: 0; left: 0;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        z-index: 0;
      }
      .ctl-slide-4 .ctl-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .ctl-slide-4 .ctl-year {
        position: relative !important;
        z-index: 2;
        bottom: auto !important;
        right: auto !important;
        margin-top: 0 !important;
        margin-bottom: 12px;
        color: rgba(255, 255, 255, 0.60) !important;
        font-size: 130px !important;
        font-weight: 300 !important;
        line-height: 130px !important;
      }
      .ctl-slide-4 .ctl-content {
        position: relative !important;
        top: auto !important; left: auto !important;
        padding: 0 24px 40px;
        max-width: none;
        z-index: 2;
      }

      /* ---- SLIDE 5 (igual a slide 2) ---- */
      .ctl-slide-5 .ctl-image {
        order: -2;
        height: auto !important;
        padding: 50px 57px 0 0 !important;
        width: 100% !important;
        margin: 0 !important;
      }
      .ctl-slide-5 .ctl-image img {
        height: auto;
        aspect-ratio: 106/71;
      }
      .ctl-slide-5 .ctl-right {
        width: 100%;
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
      }
      .ctl-slide-5 .ctl-year {
        position: static !important;
        order: -1;
        padding-top: 75px;
        padding-left: 24px;
      }
      .ctl-slide-5 .ctl-content {
        position: static;
        padding: 0 24px 40px;
        max-width: none;
      }

      /* ---- SLIDE 6 (igual a slide 1) ---- */
      .ctl-slide-6 .ctl-image { order: -2; }
      .ctl-slide-6 .ctl-left {
        width: 100%;
        padding: 0;
        order: -1;
        flex-direction: column;
      }
      .ctl-slide-6 .ctl-left .ctl-year {
        order: -1;
        align-self: flex-start;
        margin-right: 0;
        padding-top: 20px;
      }
      .ctl-slide-6 .ctl-content {
        padding: 0 24px 40px;
        max-width: none;
      }

      /* ---- SLIDE 7 (bg image) ---- */
      .ctl-slide-7 {
        padding: 0 24px 60px;
        justify-content: flex-start !important;
      }
      .ctl-slide-7 .ctl-year {
        order: -1;
        padding: 74px 0 0;
        align-self: flex-start;
      }
      .ctl-slide-7 .ctl-content {
        max-width: none;
        padding: 0;
        margin-top: auto;
      }

      /* ---- SLIDE 9 (igual a slide 1) ---- */
      .ctl-slide-9 .ctl-image { order: -2; height: 280px !important; }
      .ctl-slide-9 .ctl-left {
        width: 100%;
        padding: 0;
        order: -1;
        flex-direction: column;
        overflow: hidden;
      }
      .ctl-slide-9 .ctl-left .ctl-year {
        order: -1;
        position: static;
        padding-top: 20px;
      }
      .ctl-slide-9 .ctl-content {
        padding: 0 24px 40px;
        max-width: none;
      }

      /* ---- SLIDE 10 (igual a slide 2) ---- */
      .ctl-slide-10 .ctl-image {
        order: -2;
        height: auto !important;
        padding: 50px 57px 0 0 !important;
        width: 100% !important;
        margin: 0 !important;
      }
      .ctl-slide-10 .ctl-image img {
        height: auto;
        aspect-ratio: 106/71;
      }
      .ctl-slide-10 .ctl-left {
        width: 100%;
        padding: 0;
        order: -1;
        flex-direction: column;
      }
      .ctl-slide-10 .ctl-left .ctl-year {
        order: -1;
        position: static !important;
        padding-top: 17px;
        white-space: normal !important;
        word-spacing: 100vw;
        font-size: 94.907px !important;
        font-weight: 300 !important;
        line-height: 94.733px !important;
        color: rgba(0, 0, 0, 0.20) !important;
        text-align: right;
        padding-right: 24px;
        width: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }
      .ctl-slide-10 .ctl-left .ctl-year .ctl-year-dash {
        display: none;
      }
      .ctl-slide-10 .ctl-content {
        padding: 0 24px 40px;
        max-width: none;
      }
    }

    /* ========================
       MOBILE – Height-based media queries
       Fix carousel not filling viewport on short screens
    ======================== */

    /* Very short screens (iPhone SE, older 4" devices) – max-height 570px */
    @media (max-width: 768px) and (max-height: 570px) {
      .ctl-slide .ctl-year,
      .ctl-slide[class*="ctl-slide-"] .ctl-year {
        font-size: clamp(50px, 18vw, 75px) !important;
        margin-top: 10px !important;
      }
      .ctl-slide .ctl-image {
        height: 130px;
      }
      .ctl-slide .ctl-title { font-size: 22px; }
      .ctl-slide .ctl-subtitle { font-size: 13px; }
      .ctl-slide .ctl-description { font-size: 12px; }
      .ctl-slide .ctl-content { gap: 6px !important; }
      .ctl-slide-1 .ctl-content,
      .ctl-slide-2 .ctl-content,
      .ctl-slide-4 .ctl-content,
      .ctl-slide-5 .ctl-content,
      .ctl-slide-6 .ctl-content,
      .ctl-slide-9 .ctl-content,
      .ctl-slide-10 .ctl-content { padding-bottom: 20px !important; }
      .ctl-slide-2 .ctl-image,
      .ctl-slide-5 .ctl-image,
      .ctl-slide-10 .ctl-image { padding-top: 20px !important; }
      .ctl-slide-2 .ctl-year,
      .ctl-slide-5 .ctl-year { padding-top: 30px !important; }
      .ctl-slide-3 .ctl-images,
      .ctl-slide-8 .ctl-images { height: 170px; padding-bottom: 15px !important; }
      .ctl-slide-3 .ctl-images img:nth-child(2),
      .ctl-slide-8 .ctl-images img:nth-child(2) { top: 50px; }
      .ctl-slide-4 .ctl-year {
        font-size: 100px !important;
        line-height: 100px !important;
        margin-bottom: 8px;
      }
      .ctl-slide-9 .ctl-image { height: 180px !important; }
    }

    /* Short screens (iPhone SE landscape, iPhone 6/7/8) – max-height 670px */
    @media (max-width: 768px) and (min-height: 571px) and (max-height: 670px) {
      .ctl-slide .ctl-year,
      .ctl-slide[class*="ctl-slide-"] .ctl-year {
        font-size: clamp(55px, 20vw, 85px) !important;
        margin-top: 14px !important;
      }
      .ctl-slide .ctl-image {
        height: 170px;
      }
      .ctl-slide .ctl-title { font-size: 24px; }
      .ctl-slide .ctl-subtitle { font-size: 14px; }
      .ctl-slide .ctl-description { font-size: 13px; }
      .ctl-slide .ctl-content { gap: 8px !important; }
      .ctl-slide-3 .ctl-images,
      .ctl-slide-8 .ctl-images { height: 210px; }
      .ctl-slide-3 .ctl-images img:nth-child(2),
      .ctl-slide-8 .ctl-images img:nth-child(2) { top: 70px; }
      .ctl-slide-4 .ctl-year {
        font-size: 130px !important;
        line-height: 130px !important;
      }
      .ctl-slide-9 .ctl-image { height: 230px !important; }
    }

    /* Medium screens (iPhone 12/13/14, Pixel) – max-height 850px */
    @media (max-width: 768px) and (min-height: 671px) and (max-height: 850px) {
      .ctl-slide .ctl-year,
      .ctl-slide[class*="ctl-slide-"] .ctl-year {
        font-size: clamp(65px, 23vw, 100px) !important;
        margin-top: 18px !important;
      }
      .ctl-slide .ctl-image {
        height: 200px;
      }
      .ctl-slide .ctl-title { font-size: 26px; }
      .ctl-slide .ctl-content { gap: 10px !important; }
      .ctl-slide-3 .ctl-images,
      .ctl-slide-8 .ctl-images { height: 250px; }
      .ctl-slide-9 .ctl-image { height: 260px !important; }
    }

    /* Tall screens (iPhone Pro Max, large Android) – min-height: 851px */
    @media (max-width: 768px) and (min-height: 851px) {
      .ctl-slide .ctl-year,
      .ctl-slide[class*="ctl-slide-"] .ctl-year {
        font-size: clamp(70px, 25vw, 110px) !important;
        margin-top: 24px !important;
      }
      .ctl-slide .ctl-image {
        height: 250px;
      }
      .ctl-slide-3 .ctl-images,
      .ctl-slide-8 .ctl-images { height: 300px; }
      .ctl-slide-9 .ctl-image { height: 310px !important; }
    }

    /* ========================
       MOBILE – Width-based media queries
       Adjust layout for narrow screens
    ======================== */

    /* Narrow screens (320px – iPhone 4/5) */
    @media (max-width: 320px) {
      .ctl-slide .ctl-title { font-size: 20px !important; }
      .ctl-slide .ctl-subtitle { font-size: 12px !important; }
      .ctl-slide .ctl-description { font-size: 11px !important; }
      .ctl-slide .ctl-content { padding-left: 16px !important; padding-right: 16px !important; }
      .ctl-slide-1 .ctl-content { padding: 0 16px 30px !important; }
      .ctl-slide-2 .ctl-content { padding: 0 16px 30px !important; }
      .ctl-slide-3 .ctl-top .ctl-content { padding: 0 16px 0 !important; }
      .ctl-slide-3 .ctl-top .ctl-year,
      .ctl-slide-8 .ctl-top .ctl-year {
        font-size: 70px !important;
        line-height: 70px !important;
      }
      .ctl-slide-4 .ctl-year {
        font-size: 90px !important;
        line-height: 90px !important;
      }
      .ctl-slide-7 { padding-left: 16px !important; padding-right: 16px !important; }
      .ctl-slide-10 .ctl-left .ctl-year {
        font-size: 70px !important;
        line-height: 70px !important;
      }
    }

    /* Small screens (375px – iPhone 6/7/8/SE2/SE3/12mini/13mini) */
    @media (min-width: 321px) and (max-width: 375px) {
      .ctl-slide .ctl-title { font-size: 24px !important; }
      .ctl-slide .ctl-subtitle { font-size: 13px !important; }
      .ctl-slide .ctl-description { font-size: 12px !important; }
      .ctl-slide-3 .ctl-top .ctl-year,
      .ctl-slide-8 .ctl-top .ctl-year {
        font-size: 80px !important;
        line-height: 80px !important;
      }
      .ctl-slide-4 .ctl-year {
        font-size: 120px !important;
        line-height: 120px !important;
      }
    }

    /* Medium screens (390-414px – iPhone 12/13/14, iPhone 6+/7+/8+) */
    @media (min-width: 376px) and (max-width: 414px) {
      .ctl-slide .ctl-title { font-size: 26px !important; }
      .ctl-slide .ctl-description { font-size: 13px !important; }
    }

    /* Large mobile screens (415-480px – iPhone 14 Pro Max, large Android) */
    @media (min-width: 415px) and (max-width: 480px) {
      .ctl-slide .ctl-title { font-size: 28px !important; }
    }

    /* Capa oscura sobre la imagen de fondo completa, para que el texto se lea */
    .ctl-layout-fullbg::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 100%);
      pointer-events: none;
    }
    .ctl-layout-fullbg > .ctl-inner { z-index: 1; }
