/* Proyecto: RELY R8 - High-End Landing Page
   Style: Apple / Tesla Premium (Dark & Light Mode) 2030
   Developer: Simón Reyes | LemonLabs
*/


/* ================= VARIABLES DINÁMICAS (DARK MODE POR DEFECTO) ================= */

:root {
    --primary: #FF3C00;
    --primary-hover: #FF5A26;
    --primary-glow: rgba(255, 60, 0, 0.25);
    --bg-color: #000000;
    --bg-elevated: #0A0A0A;
    --bg-card: rgba(20, 20, 20, 0.6);
    --text-main: #F5F5F7;
    --text-dim: #86868B;
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-heavy: rgba(0, 0, 0, 0.8);
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    --radius-lg: 32px;
    --radius-md: 18px;
}


/* ================= LIGHT MODE (VERSIÓN BLANCA APPLE) ================= */

body.light-mode {
    --bg-color: #F5F5F7;
    --bg-elevated: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #1D1D1F;
    --text-dim: #515154;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow-heavy: rgba(0, 0, 0, 0.1);
}


/* ================= RESET BÁSICO ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.5s ease;
}


/* ================= TIPOGRAFÍA FLUIDA ================= */

h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 900;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}


/* ================= BOTONES MINIMALISTAS ================= */

.btn-main {
    background: var(--primary);
    color: #FFFFFF;
    padding: 16px 36px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    display: inline-block;
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-sub {
    background: transparent;
    color: var(--text-main);
    padding: 16px 36px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    transition: var(--transition);
    border: 1px solid var(--text-dim);
}

.btn-sub:hover {
    background: var(--text-main);
    color: var(--bg-color);
    transform: scale(1.02);
}


/* ================= HEADER ULTRA CLEAN ================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.menu a:hover {
    color: var(--primary);
}


/* ================= HERO SECTION (FULL JPG CINEMÁTICO) ================= */

.hero-premium {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--bg-color);
    overflow: hidden;
}


/* Degradado de viñeta para que resalte el título arriba */

.hero-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 40%, var(--bg-color) 95%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    z-index: 5;
    max-width: 800px;
    padding: 0 5%;
    margin-top: -15vh;
    /* Sube un poco para no tapar los carros */
}

.badge-new {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 20px;
}

.hero-premium h1 {
    color: #FFFFFF;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.hero-premium h2 {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

.hero-specs {
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-specs .sep {
    color: var(--primary);
    margin: 0 15px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}


/* LA IMAGEN: Ocupa toda la pantalla con zoom suave */

.main-car-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center bottom;
    z-index: 1;
    filter: none;
    /* Quitamos sombra porque es un JPG */
    animation: cinematicZoom 15s ease-out forwards;
}

@keyframes cinematicZoom {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


/* ================= SCROLLYTELLING ================= */

.scrolly-section {
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25vh;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.bg-layer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-color) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
}

.bg-layer.active {
    opacity: 1;
}

.l-ciudad {
    background-image: url('../img/fondo-ciudad.jpg');
}

.l-montana {
    background-image: url('../img/fondo-montana.jpg');
}

.l-playa {
    background-image: url('../img/fondo-playa.jpg');
}

.l-desierto {
    background-image: url('../img/fondo-medanos.png');
}

.l-llanos {
    background-image: url('../img/fondo-llanos.png');
}

.content-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.info-step {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-40%);
    z-index: 10;
    max-width: 480px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.info-step.active {
    opacity: 1;
    transform: translateY(-50%);
}

.info-step h3 {
    color: var(--text-main);
    margin-bottom: 15px;
}

.info-step p {
    font-size: 1.15rem;
    color: #FFFFFF;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.fixed-car-container {
    position: absolute;
    z-index: 5;
    width: 70vw;
    max-width: 900px;
    right: 5%;
    bottom: 5vh;
}

.car-side {
    width: 100%;
    display: block;
    filter: drop-shadow(-15px 30px 20px rgba(0, 0, 0, 0.7));
    transition: filter 0.5s ease;
}


/* ================= CINEMATIC VIDEO BREAK ================= */

.video-break {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--bg-color);
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.video-text-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 100%);
}

.video-text-overlay h2 {
    color: #FFFFFF;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 1);
}


/* ================= BENTO GRID (IMÁGENES MÁS VISIBLES) ================= */

.specs-bento {
    padding: 12vh 0;
    background: var(--bg-color);
}

.bento-header {
    text-align: center;
    margin-bottom: 8vh;
    padding: 0 5%;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(320px, 40vh));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.bento-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}


/* Fotos CLARAS. Opacidad al 65% para que se aprecie la ingeniería */

.bento-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: transform 1s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}


/* Gradiente mucho más suave, solo oscuro donde está el texto */

.bento-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: flex-start;
}

.item-medium {
    grid-column: span 2;
}

.bento-content {
    position: relative;
    z-index: 2;
}


/* Tipografía Blanca Pura con Sombra Fuerte para Contraste */

.bento-item h4 {
    color: #FFFFFF;
    margin-bottom: 10px;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
}

.bento-item p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    font-weight: 500;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
}


/* ================= VISOR DE INTERIORES ================= */

.interior-visor {
    padding: 12vh 0;
    text-align: center;
    background: var(--bg-elevated);
}

.visor-text {
    margin-bottom: 6vh;
    padding: 0 5%;
}

.visor-text p {
    color: var(--text-dim);
    font-size: 1.15rem;
}

.visor-ui {
    position: relative;
    max-width: 1200px;
    width: 90%;
    height: 70vh;
    min-height: 500px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px var(--shadow-heavy);
}

.hotspot {
    position: absolute;
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 400;
    font-size: 1.5rem;
    z-index: 20;
    transition: var(--transition);
}

.hotspot:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFF;
    transform: scale(1.15);
}

.hotspot-popup {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    padding: 25px;
    border-radius: var(--radius-md);
    width: 320px;
    text-align: left;
    border: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.95);
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 30px 60px var(--shadow-heavy);
}

.hotspot-popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.hotspot-popup h4 {
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.hotspot-popup p {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 0;
}

#pop-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    display: none;
}


/* ================= VERSIONS SHOWROOM ================= */

.versions-section {
    padding: 12vh 0;
    background: var(--bg-color);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 6vh;
    padding: 0 5%;
}

.tab-link {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    padding-bottom: 10px;
    position: relative;
}

.tab-link.active {
    color: var(--text-main);
}

.tab-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.tab-link.active::after {
    width: 100%;
}

.tab-pane {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease;
    padding: 0 5%;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.showroom-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.showroom-specs h3 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.showroom-desc {
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.spec-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}

.spec-row span:first-child {
    color: var(--text-dim);
}

.spec-row span:last-child {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
}

.showroom-price {
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 30px;
}


/* ================= FAQ SECTION ================= */

.faq-area {
    background: var(--bg-elevated);
    border-top: 1px solid var(--glass-border);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.faq-item h4 {
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.faq-item p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
}


/* ================= CONTACT FORM ================= */

.test-drive-area {
    padding: 15vh 0;
    background: var(--bg-color);
}

.td-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5%;
}

.td-info {
    text-align: center;
    margin-bottom: 6vh;
}

.td-info p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.td-form-box {
    background: var(--bg-card);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px var(--shadow-heavy);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.field {
    position: relative;
    margin-bottom: 25px;
}

.field input,
.field select {
    width: 100%;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
    appearance: none;
}

.field label {
    position: absolute;
    left: 20px;
    top: 18px;
    color: var(--text-dim);
    pointer-events: none;
    transition: var(--transition);
}

.field input:focus,
.field select:focus {
    background: var(--glass-bg);
    border-color: var(--primary);
}

.field input:focus~label,
.field input:not(:placeholder-shown)~label,
.field select:focus~label,
.field select:valid~label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--bg-card);
    padding: 0 8px;
    border-radius: 4px;
}

.field select option {
    background: var(--bg-elevated);
    color: var(--text-main);
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: #FFF;
    border: none;
    padding: 20px;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: 0 10px 20px var(--primary-glow);
}


/* ================= FOOTER & LEMONLABS ================= */

.site-footer {
    border-top: 1px solid var(--glass-border);
    background: var(--bg-color);
    padding: 10vh 0 0 0;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 0 5%;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    margin-top: 8vh;
    padding: 30px 5%;
    background: var(--bg-elevated);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.developer-tag a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.footer-legal-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.legal-links {
    display: flex;
    gap: 15px;
    border-left: 1px solid var(--glass-border);
    padding-left: 20px;
}

.legal-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--text-main);
}


/* ================= CHATBOT FLOTANTE APP-LIKE ================= */

#rely-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-toggle {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 16px 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--shadow-heavy);
    transition: var(--transition);
}

.chat-toggle:hover {
    background: var(--bg-card);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: var(--glass-bg);
    backdrop-filter: saturate(200%) blur(30px);
    -webkit-backdrop-filter: saturate(200%) blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transition: var(--transition);
    box-shadow: 0 25px 50px var(--shadow-heavy);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-chat:hover {
    color: var(--primary);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
}

.msg.bot {
    background: var(--bg-card);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--glass-border);
}

.msg.user {
    background: var(--primary);
    color: #FFF;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-footer {
    padding: 18px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-btn {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.chat-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 14px;
    border-radius: var(--radius-md);
    outline: none;
    font-family: var(--font-body);
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send {
    background: var(--primary);
    color: #FFF;
    border: none;
    padding: 0 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}


/* ================= MÓVIL (APP-LIKE EXTREMO) ================= */

@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .showroom-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 5%;
    }
    .menu {
        display: none;
    }
    .hero-premium {
        padding-top: 0;
        justify-content: center;
    }
    /* Centrado en móvil */
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .btn-main,
    .btn-sub {
        width: 100%;
        text-align: center;
    }
    /* Hero en Móvil: El texto sube para que la foto se luzca entera */
    .hero-content {
        margin-top: -25vh;
    }
    /* Scrollytelling Móvil: Carro Anclado al piso y tamaño perfecto */
    .fixed-car-container {
        width: 100vw;
        /* Toma casi toda la pantalla */
        max-width: 500px;
        bottom: 2vh;
        /* Literalmente anclado a la calle/arena */
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    /* Textos del Scrollytelling suben al tope para no tapar la camioneta */
    .info-step {
        left: 5%;
        right: 5%;
        width: 90%;
        top: 12vh;
        bottom: auto;
        transform: translateY(0);
        background: var(--glass-bg);
        backdrop-filter: saturate(180%) blur(25px);
        -webkit-backdrop-filter: saturate(180%) blur(25px);
        padding: 30px 20px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--glass-border);
        text-align: center;
    }
    .info-step.active {
        transform: translateY(0);
    }
    .bento-item {
        padding: 30px 25px;
    }
    .bento-item h4 {
        font-size: 1.3rem;
    }
    .bento-item p {
        font-size: 1rem;
    }
    .grid-layout {
        grid-template-columns: 1fr;
    }
    .item-large,
    .item-medium,
    .item-small {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 320px;
    }
    .td-form-box {
        padding: 30px 20px;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
    }
    .footer-legal-group {
        flex-direction: column;
        gap: 10px;
    }
    .legal-links {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--glass-border);
        padding-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    #rely-chatbot {
        right: 15px;
        bottom: 15px;
    }
    .chat-window {
        right: -15px;
        bottom: -15px;
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
        border: none;
        background: var(--bg-color);
    }
    .chat-header {
        padding: 20px 20px;
        padding-top: max(20px, env(safe-area-inset-top));
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 5%;
    }
    .menu {
        display: none;
    }
    /* El Hero en Móvil ocupa toda la pantalla correctamente */
    .hero-premium {
        padding-top: 15vh;
        justify-content: flex-start;
    }
    .hero-content {
        margin-top: 0;
        z-index: 10;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .btn-main,
    .btn-sub {
        width: 100%;
        text-align: center;
    }
    /* La imagen de las 5 camionetas como fondo absoluto */
    .main-car-img {
        position: absolute;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        max-height: none;
        object-fit: cover;
        object-position: center bottom;
        z-index: 1;
        opacity: 0.8;
        /* Le bajamos un toque la opacidad para leer el texto */
    }
    /* Oscurecemos más el fondo detrás del texto para que no se pierda */
    .hero-premium::after {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.8) 100%);
    }
    /* Scrollytelling Móvil: Carro anclado */
    .fixed-car-container {
        width: 100vw;
        max-width: 500px;
        bottom: 2vh;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    /* Textos del Scrollytelling suben para no tapar la camioneta naranja */
    .info-step {
        left: 5%;
        right: 5%;
        width: 90%;
        top: 8vh;
        /* Más arriba */
        bottom: auto;
        transform: translateY(0);
        background: var(--glass-bg);
        backdrop-filter: saturate(180%) blur(25px);
        -webkit-backdrop-filter: saturate(180%) blur(25px);
        padding: 30px 20px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--glass-border);
        text-align: center;
    }
    .info-step.active {
        transform: translateY(0);
    }
    .bento-item {
        padding: 30px 25px;
    }
    .grid-layout {
        grid-template-columns: 1fr;
    }
    .item-large,
    .item-medium,
    .item-small {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 320px;
    }
    .td-form-box {
        padding: 30px 20px;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
    }
    .footer-legal-group {
        flex-direction: column;
        gap: 10px;
    }
    .legal-links {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--glass-border);
        padding-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    #rely-chatbot {
        right: 15px;
        bottom: 15px;
    }
    .chat-window {
        right: -15px;
        bottom: -15px;
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
        border: none;
        background: var(--bg-color);
    }
    .chat-header {
        padding: 20px 20px;
        padding-top: max(20px, env(safe-area-inset-top));
    }
}


/* ================= SELECTOR DE COLORES (SHOWROOM) ================= */

.showroom-img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.showroom-img-container img {
    width: 100%;
    transition: opacity 0.3s ease;
}

.color-selector {
    text-align: center;
    background: var(--bg-card);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.color-selector p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 12px;
    font-weight: 600;
}

.color-dots {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.color-dot:hover {
    transform: scale(1.15);
}


/* Estado activo del botón de color */

.color-dot.active {
    border: 2px solid var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--primary-glow);
}


/* Excepción para que el botón blanco se vea bien */

.color-dot[style*="#FFFFFF"] {
    border: 2px solid #DDDDDD;
}

.color-dot[style*="#FFFFFF"].active {
    border: 2px solid var(--primary);
}


/* ================= BADGES DEL HERO (PÍLDORAS) ================= */

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges .badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-badges .badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}


/* El Badge de la Garantía resaltado con los colores de la marca */

.hero-badges .warranty-badge {
    background: rgba(255, 60, 0, 0.15);
    border-color: var(--primary);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 60, 0, 0.2);
}

.hero-badges .warranty-badge svg {
    stroke: var(--primary);
}

.hero-badges .warranty-badge:hover {
    background: rgba(255, 60, 0, 0.25);
}


/* Ajuste para móviles: que no se vean tan grandes */

@media (max-width: 768px) {
    .hero-badges {
        gap: 8px;
    }
    .hero-badges .badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}