/* BYD Codinova — Estilos exclusivos de la página del Ti7 (ti7.html).
   Todo está dentro de .ti7 para no afectar al resto del sitio. */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

.ti7{font-family:"Montserrat",sans-serif;color:#fff;--nav-h: 63px; --nav-bg: rgba(72, 76, 80, .96); --text: #fff; --accent: #3753b1; --hero-img: url("../img/ti7/hero.webp")}
.ti7 *{box-sizing: border-box; margin: 0; padding: 0}
.ti7{font-family: "Montserrat", sans-serif; color: var(--text); background: #111}
.ti7 a{color: inherit; text-decoration: none}
.ti7 .hero{position: relative; min-height: calc(100vh - var(--nav-h)); background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), var(--hero-img) center / cover no-repeat, linear-gradient(160deg, #2c3b2f, #1a2a33 60%, #0e171c); display: flex; align-items: center}
.ti7 .hero__content{margin-left: 393px; max-width: 980px; padding-top: 60px}
.ti7 .hero h1{font-size: 40px; font-weight: 700; letter-spacing: .5px; margin-bottom: 18px}
.ti7 .hero p{font-size: 18px; font-weight: 500; line-height: 1.5; margin-bottom: 22px}
.ti7 .ti7-btn{display: inline-block; padding: 15px 24px; border: 1px solid #fff; font-weight: 600; font-size: 16px; transition: background .2s, color .2s}
.ti7 .ti7-btn:hover{background: #fff; color: #111}
.ti7 .tech{background: #fff; color: #222; padding: 60px 20px 80px}
.ti7 .stats{display: flex; justify-content: center; max-width: 1000px; margin: 0 auto 80px}
.ti7 .stat{flex: 1; text-align: center; padding: 0 40px; border-left: 1px solid #222; min-height: 112px}
.ti7 .stat:first-child{border-left: 0}
.ti7 .stat strong{display: block; font-size: 56px; font-weight: 700; line-height: 1.1; margin-bottom: 36px}
.ti7 .stat span{font-size: 11px; font-weight: 700; text-transform: uppercase}
.ti7 .tech h2{text-align: center; font-size: 32px; font-weight: 700; text-transform: uppercase; margin-bottom: 50px}
.ti7 .tech__img{display: block; width: 100%; max-width: 1120px; aspect-ratio: 1120 / 333; object-fit: cover; margin: 0 auto 20px; background: linear-gradient(135deg, #e7d8d2, #2b3340)}
.ti7 .features{display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1120px; margin: 0 auto}
.ti7 .feature{background: #f1f1f1; padding: 14px 16px 18px}
.ti7 .feature__icon{width: 30px; height: 30px; background: #fff; padding: 4px; display: block; margin-bottom: 14px}
.ti7 .feature h3{font-size: 15px; font-weight: 700; margin-bottom: 8px}
.ti7 .feature p{font-size: 13.5px; color: #444}
.ti7 .system{background: #0c1115; padding: 90px 20px}
.ti7 .system__inner{max-width: 1120px; margin: 0 auto}
.ti7 .system__eyebrow{font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px}
.ti7 .system h2{font-size: 32px; font-weight: 700; text-transform: uppercase; margin-bottom: 36px}
.ti7 .tabs{display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px}
.ti7 .tab{position: relative; text-align: left; background: none; border: 0; color: rgba(255,255,255,.5); font: inherit; font-size: 15px; font-weight: 600; padding: 14px 0 16px; cursor: pointer; border-top: 2px solid rgba(255,255,255,.15); transition: color .3s}
.ti7 .tab small{display: block; font-size: 12px; letter-spacing: 2px; margin-bottom: 6px}
.ti7 .tab::before{content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--accent)}
.ti7 .tab[aria-selected="true"]{color: #fff}
.ti7 .tab[aria-selected="true"]::before{width: 100%; transition: width 7s linear}
.ti7 .stage{position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #1a2229; touch-action: pan-y}
.ti7 .slide{position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.04); transition: opacity .8s, transform 1.2s, visibility .8s}
.ti7 .slide.is-active{opacity: 1; visibility: visible; transform: none}
.ti7 .slide__img{position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover}
.ti7 .slide::after{content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,12,15,.85) 0%, rgba(8,12,15,.35) 45%, transparent 70%)}
.ti7 .slide__text{position: absolute; z-index: 1; left: 44px; bottom: 44px; max-width: 380px}
.ti7 .slide__text h3{font-size: 30px; font-weight: 700; margin-bottom: 12px}
.ti7 .slide__text p{font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.88)}
.ti7 .dmp{background: #fff; color: #1b2025; display: grid; grid-template-columns: 1fr 1fr; min-height: 640px}
.ti7 .dmp__media{position: relative; background: #1d4b45}
.ti7 .dmp__media img{position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover}
.ti7 .dmp__tag{position: absolute; top: 28px; left: 28px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 12px 16px; letter-spacing: 1px}
.ti7 .dmp__body{display: flex; flex-direction: column; justify-content: center; padding: 70px 8%}
.ti7 .dmp__lead{font-size: 26px; font-weight: 700; line-height: 1.35; margin-bottom: 32px}
.ti7 .dmp__lead em{font-style: normal; color: var(--accent)}
.ti7 .dmp__list{list-style: none; margin-bottom: 36px}
.ti7 .dmp__list li{position: relative; padding: 9px 0 9px 34px; font-size: 15px; line-height: 1.5; color: #3b4348}
.ti7 .dmp__list li::before{content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat}
.ti7 .dmp .btn--dark{display: inline-block; align-self: flex-start; padding: 16px 30px; margin-top: 0}
.ti7 .adas{background: #eceff7; color: #1b2025; padding: 90px 0 80px}
.ti7 .adas__head{max-width: 1120px; margin: 0 auto 40px; padding: 0 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px}
.ti7 .adas__eyebrow{font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px}
.ti7 .adas h2{font-size: 32px; font-weight: 700; max-width: 620px; line-height: 1.2}
.ti7 .adas__nav{display: flex; gap: 10px; flex-shrink: 0}
.ti7 .adas__btn{width: 46px; height: 46px; border-radius: 50%; border: 1px solid #1b2025; background: none; font-size: 18px; cursor: pointer; transition: background .2s, color .2s, opacity .2s}
.ti7 .adas__btn:hover:not(:disabled){background: #1b2025; color: #fff}
.ti7 .adas__btn:disabled{opacity: .3; cursor: default}
.ti7 .adas__track{display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 max(20px, calc((100vw - 1120px) / 2)); scroll-padding: 0 max(20px, calc((100vw - 1120px) / 2))}
.ti7 .adas__track::-webkit-scrollbar{display: none}
.ti7 .acard{flex: 0 0 calc(50% - 80px); min-width: 340px; max-width: 520px; scroll-snap-align: start; background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column}
.ti7 .acard__media{position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dfe4f5, #c9d1ec); display: grid; place-items: center}
.ti7 .acard__media video{position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover}
.ti7 .acard__soon{font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); opacity: .75}
.ti7 .acard__body{padding: 26px 28px 32px}
.ti7 .acard__num{font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px}
.ti7 .acard h3{font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 12px}
.ti7 .acard p{font-size: 14.5px; line-height: 1.6; color: #444c52}
.ti7 .acard__media img{position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover}
.ti7 .allads{max-width: 1120px; margin: 56px auto 0; padding: 0 20px}
.ti7 .allads summary{list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; background: #fff; border-radius: 16px; padding: 22px 28px; font-size: 17px; font-weight: 700; transition: background .2s}
.ti7 .allads summary::-webkit-details-marker{display: none}
.ti7 .allads summary:hover{background: #f7f8fc}
.ti7 .allads summary small{display: block; font-size: 13px; font-weight: 500; color: #5d656b; margin-top: 4px}
.ti7 .allads__icon{flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 20px; transition: transform .3s}
.ti7 .allads[open] .allads__icon{transform: rotate(45deg)}
.ti7 .allads__grid{display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px}
.ti7 .agroup{background: #fff; border-radius: 16px; padding: 24px 26px 18px}
.ti7 .agroup h4{font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #e3e6f0}
.ti7 .agroup ul{list-style: none}
.ti7 .agroup li{padding: 7px 0; font-size: 13.5px; line-height: 1.4; color: #444c52}
.ti7 .agroup b{display: inline-block; min-width: 56px; margin-right: 6px; color: #1b2025; font-size: 12.5px; letter-spacing: .5px}
.ti7 .adas__dots{display: flex; justify-content: center; gap: 8px; margin-top: 30px}
.ti7 .adas__dots button{width: 26px; height: 3px; border: 0; padding: 0; background: #b9c0d6; cursor: pointer; transition: background .3s, width .3s}
.ti7 .adas__dots button.is-on{background: var(--accent); width: 54px}
.ti7 .ti7-cta{position: relative; background: #0b1020; color: #fff; aspect-ratio: 16 / 9; overflow: hidden}
.ti7 .cta__img{position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover}
.ti7 .ti7-cta::after{content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,11,22,.6) 0%, rgba(8,11,22,.25) 35%, transparent 55%); pointer-events: none}
.ti7 .cta__box{position: absolute; z-index: 1; top: 8%; left: max(40px, calc((100vw - 1120px) / 2)); max-width: 480px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px}
.ti7 .cta__eyebrow{font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; opacity: .8}
.ti7 .ti7-cta h2{font-size: 36px; font-weight: 700; line-height: 1.15; margin-bottom: 12px}
.ti7 .ti7-cta p.cta__text{font-size: 16px; line-height: 1.55; max-width: 460px; opacity: .9}
.ti7 .btn--light{flex-shrink: 0; display: inline-block; padding: 17px 34px; background: #fff; color: #0b1020; font-weight: 700; font-size: 16px; border: 1px solid #fff; transition: background .2s, color .2s}
.ti7 .btn--light:hover{background: transparent; color: #fff}
.ti7 .ti7-gallery{background: #fff; color: #1b2025; padding: 90px 20px; text-align: center}
.ti7 .gallery__inner{max-width: 1120px; margin: 0 auto}
.ti7 .gallery__lead{font-size: 22px; font-weight: 700; line-height: 1.4; max-width: 640px; margin: 0 auto 26px}
.ti7 .btn--accent{display: inline-block; padding: 15px 28px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; border: 1px solid var(--accent); transition: background .2s, color .2s}
.ti7 .btn--accent:hover{background: transparent; color: var(--accent)}
.ti7 .ti7-gallery h2{font-size: 34px; font-weight: 700; margin: 80px 0 28px}
.ti7 .gtabs{display: inline-flex; gap: 6px; padding: 5px; background: #eceff7; border-radius: 999px; margin-bottom: 36px}
.ti7 .gtab{border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; padding: 10px 28px; border-radius: 999px; color: #5d656b; cursor: pointer; transition: background .25s, color .25s}
.ti7 .gtab[aria-selected="true"]{background: var(--accent); color: #fff}
.ti7 .ggrid{display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1120 / 515}
.ti7 .gitem{position: relative; border: 0; padding: 0; overflow: hidden; border-radius: 16px; cursor: zoom-in; background: #dfe3ee}
.ti7 .gitem:first-child{grid-row: 1 / 3}
.ti7 .gitem img{width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s}
.ti7 .gitem:hover img{transform: scale(1.05)}
.ti7 .gitem__more{position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12, 17, 21, .55); color: #fff; font-size: 28px; font-weight: 700}
.ti7 .gitem__more small{display: block; font-size: 13px; font-weight: 500; letter-spacing: 1px}
.ti7 .ti7-lightbox{border: 0; padding: 0; margin: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; color: #fff}
.ti7 .ti7-lightbox::backdrop{background: rgba(8, 11, 14, .92)}
.ti7 .lightbox__inner{position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 60px 70px 70px}
.ti7 .lightbox__img{display: block; max-width: calc(100vw - 140px); max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); width: auto; height: auto; object-fit: contain; border-radius: 10px}
.ti7 .lightbox__count{position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 13px; letter-spacing: 2px}
.ti7 .lb-btn{position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; font-size: 20px; cursor: pointer; transition: background .2s}
.ti7 .lb-btn:hover{background: rgba(255,255,255,.25)}
.ti7 .lb-close{top: 18px; right: 18px}
.ti7 .lb-prev{left: 14px; top: 50%; transform: translateY(-50%)}
.ti7 .lb-next{right: 14px; top: 50%; transform: translateY(-50%)}
.ti7 .reserve{background: #f3f4f5; color: #1b2025; padding: 90px 20px 60px}
.ti7 .reserve__inner{max-width: 1120px; margin: 0 auto}
.ti7 .reserve h2{text-align: center; font-size: 34px; font-weight: 700; margin-bottom: 56px}
.ti7 .reserve__grid{display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start}
.ti7 .picker__view{position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #dcdfe1; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35)}
.ti7 .picker__view img{position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s}
.ti7 .picker__view img.is-fading{opacity: 0}
.ti7 .picker__bar{display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 24px}
.ti7 .picker__label{font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #6b7379; margin-bottom: 4px}
.ti7 .picker__name{font-size: 20px; font-weight: 700; line-height: 1.3; white-space: nowrap}
.ti7 .swatches{display: flex; gap: 12px}
.ti7 .swatch{width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; padding: 3px; background: none; cursor: pointer; transition: transform .2s, border-color .2s}
.ti7 .swatch span{display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15)}
.ti7 .swatch:hover{transform: translateY(-3px)}
.ti7 .swatch[aria-checked="true"]{border-color: #1b2025}
.ti7 .specs{list-style: none}
.ti7 .specs li{display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #d9dcde; font-size: 14px}
.ti7 .specs li span{color: #5d656b}
.ti7 .specs li strong{text-align: right; font-weight: 700}
.ti7 .btn--dark{display: block; text-align: center; margin-top: 28px; padding: 17px; border: 1px solid #1b2025; background: #1b2025; color: #fff; font-weight: 600; font-size: 16px; transition: background .2s, color .2s}
.ti7 .btn--dark:hover{background: transparent; color: #1b2025}
.ti7 .reserve__legal{text-align: center; margin-top: 56px; font-size: 11px; color: #8a9096}
.ti7 .reserve__terms{display: block; text-align: center; margin-top: 18px; font-weight: 600; font-size: 16px; color: #1f3a5f}
.ti7 .reserve__terms:hover{text-decoration: underline}

@media (max-width: 1100px){.ti7 .hero__content{margin-left: 8vw; margin-right: 8vw}}

@media (max-width: 800px){.ti7 .hero__content{margin: 0 20px}
.ti7 .hero h1{font-size: 30px}
.ti7 .hero p{font-size: 16px}
.ti7 .stats{flex-direction: column; gap: 32px; margin-bottom: 50px}
.ti7 .stat{border-left: 0; padding: 0; min-height: 0}
.ti7 .stat strong{margin-bottom: 12px}
.ti7 .tech h2{font-size: 24px}
.ti7 .features{grid-template-columns: 1fr 1fr}
.ti7 .system h2{font-size: 24px}
.ti7 .tab{font-size: 13px}
.ti7 .stage{aspect-ratio: auto; background: #151c22}
.ti7 .slide{transform: none}
.ti7 .slide:not(.is-active){position: absolute}
.ti7 .slide.is-active{position: relative}
.ti7 .slide__img{position: static; height: auto; aspect-ratio: 16 / 9; display: block}
.ti7 .slide::after{display: none}
.ti7 .slide__text{position: static; max-width: none; padding: 22px 20px 26px}
.ti7 .slide__text h3{font-size: 24px}}

@media (max-width: 900px){.ti7 .ti7-cta{aspect-ratio: auto; display: block}
.ti7 .cta__img{position: static; height: auto; aspect-ratio: 16 / 9; display: block}
.ti7 .ti7-cta::after{display: none}
.ti7 .cta__box{position: static; max-width: none; padding: 32px 20px 44px}
.ti7 .ti7-cta h2{font-size: 26px}
.ti7 .ti7-gallery{padding: 60px 20px}
.ti7 .gallery__lead{font-size: 18px}
.ti7 .ti7-gallery h2{font-size: 24px; margin-top: 56px}
.ti7 .ggrid{grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto}
.ti7 .gitem{aspect-ratio: 4 / 3}
.ti7 .gitem:first-child{grid-row: auto; grid-column: 1 / 3; aspect-ratio: 16 / 10}
.ti7 .lightbox__inner{padding: 70px 12px 70px}
.ti7 .lightbox__img{max-width: calc(100vw - 24px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px)}
.ti7 .lb-prev,.ti7 .lb-next{top: auto; bottom: 14px; transform: none}
.ti7 .lb-prev{left: 14px}
.ti7 .lb-next{right: 14px}
.ti7 .adas{padding: 60px 0}
.ti7 .adas h2{font-size: 24px}
.ti7 .adas__nav{display: none}
.ti7 .acard{flex-basis: 85%; min-width: 0}
.ti7 .allads summary{padding: 18px 20px; font-size: 15px}
.ti7 .agroup b{display: block; min-width: 0}
.ti7 .dmp{grid-template-columns: 1fr}
.ti7 .dmp__media{aspect-ratio: 4 / 3}
.ti7 .dmp__body{padding: 40px 20px}
.ti7 .dmp__lead{font-size: 20px}
.ti7 .reserve h2{font-size: 24px; margin-bottom: 36px}
.ti7 .reserve__grid{grid-template-columns: 1fr; gap: 36px}}

@media (max-width: 500px){.ti7 .features{grid-template-columns: 1fr}}

@media (max-width: 800px) {
  .ti7 { --hero-img: url("../img/ti7/heroMobile.webp"); }
  .ti7 .hero { align-items: flex-start; }
  .ti7 .hero__content { padding-top: 90px; }
  .ti7 .hero p { font-size: 15px; margin-bottom: 18px; }
  .ti7 .stage { display: grid; aspect-ratio: auto; height: auto; }
  .ti7 .slide { height: auto; }
  .ti7 .adas { display: block; margin: 0; }
  .ti7 .slide.is-active,
  .ti7 .slide:not(.is-active) { grid-area: 1 / 1; position: relative; inset: auto; transform: none; }
  .ti7 .slide__img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .ti7 .slide__text { position: static; max-width: none; padding: 22px 20px 28px; }
  .ti7 .tab { font-size: 12px; }
}

/* ── Atto 8 (atto-8.html): mismo diseño, solo cambia la imagen del banner ── */
.ti7.atto8 { --hero-img: url("../img/atto-8/hero.webp"); }
@media (max-width: 800px) {
  .ti7.atto8 { --hero-img: url("../img/atto-8/hero-mobile.webp"); }
}
