@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Inter', sans-serif;
    background: #090909;
    color: white;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 28px 45px;

    z-index: 100;
}


.logo {
    color: white;
    text-decoration: none;

    font-size: 20px;
    font-weight: 500;

    letter-spacing: 4px;
}


.nav-links {
    display: flex;
    gap: 38px;
}


.nav-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;

    font-size: 13px;
    font-weight: 400;

    transition: 0.3s;
}


.nav-links a:hover {
    color: white;
}


.nav-contact {
    color: white;
    text-decoration: none;

    font-size: 11px;

    letter-spacing: 2px;

    border: 1px solid rgba(255, 255, 255, 0.5);

    padding: 13px 20px;

    transition: 0.3s;
}


.nav-contact:hover {
    background: white;
    color: black;
}


/* =========================
   HERO
========================= */

.hero {
    height: 100vh;
    min-height: 700px;

    position: relative;

    background: #000;

    display: flex;
    align-items: center;

    padding: 0 6%;

    overflow: hidden;
}


/* Logo del hero: PNG transparente guardado en assets/herofondo.png */
.hero::after {
    content: "";

    position: absolute;

    width: min(520px, 34vw);
    aspect-ratio: 1 / 1;

    right: 6%;
    top: 50%;

    transform: translateY(-50%);

    background-image: url("assets/herofondo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.95;

    pointer-events: none;

    z-index: 0;
}


/* Transición suave para que el texto y el logo no compitan */
.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.96) 38%,
        rgba(0, 0, 0, 0.58) 58%,
        rgba(0, 0, 0, 0.00) 78%
    );

    pointer-events: none;

    z-index: 1;
}


.hero-content {
    position: relative;

    z-index: 2;

    width: min(760px, 56vw);

    margin-top: 55px;
}


.hero-small {
    font-size: 11px;

    letter-spacing: 4px;

    color: rgba(255, 255, 255, 0.65);

    margin-bottom: 28px;
}


.hero h1 {
    font-size: clamp(66px, 5.7vw, 100px);

    font-weight: 400;

    line-height: 0.90;

    letter-spacing: -4px;

    max-width: 820px;
}


.hero-description {
    margin-top: 32px;

    max-width: 430px;

    font-size: 17px;

    line-height: 1.6;

    color: rgba(255, 255, 255, 0.72);
}

/* =========================
   BOTONES
========================= */

.hero-buttons {
    display: flex;
    gap: 12px;

    margin-top: 35px;
}


.button {
    display: inline-block;

    padding: 17px 25px;

    text-decoration: none;

    font-size: 11px;

    letter-spacing: 2px;

    transition: 0.3s;
}


.button-white {
    background: white;
    color: black;
}


.button-white:hover {
    background: #dedede;
}


.button-transparent {
    color: white;

    border: 1px solid rgba(255, 255, 255, 0.5);
}


.button-transparent:hover {
    background: white;
    color: black;
}


/* =========================
   HERO BOTTOM
========================= */

.hero-bottom {
    position: absolute;

    bottom: 30px;
    left: 6%;
    right: 6%;

    display: flex;
    justify-content: space-between;

    font-size: 9px;

    letter-spacing: 3px;

    color: rgba(255, 255, 255, 0.5);

    z-index: 2;
}


/* =========================
   STOCK
========================= */

.stock {
    background: #f5f5f3;
    color: #111;

    padding: 90px 6% 110px;
}


.stock-header {
    width: 100%;
    max-width: 1800px;

    display: flex;
    justify-content: space-between;
    align-items: end;

    margin: 0 auto 35px;
}


.stock-header p {
    font-size: 10px;
    letter-spacing: 3px;
    color: #777;
}


.stock-header h2 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -1px;
}


.cars-grid {
    width: 100%;
    max-width: 1800px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}


.car-card {
    cursor: pointer;
}


.car-card img {
    width: 100%;
    height: auto;

    aspect-ratio: 16 / 10;

    object-fit: cover;
    object-position: center;

    display: block;
}


.car-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding-top: 18px;
}


.car-info h3 {
    font-size: 18px;
    font-weight: 500;

    margin-bottom: 7px;
}


.car-info p {
    font-size: 13px;
    color: #777;
}


.car-info span {
    font-size: 15px;
    font-weight: 500;
}


@media (max-width: 800px) {

    .stock {
        padding: 70px 20px;
    }


    .stock-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }


    .stock-header h2 {
        font-size: 34px;
    }


    .cars-grid {
        grid-template-columns: 1fr;
    }


    .car-card img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

}

/* =========================
   VEHICLE PAGE
========================= */

.car-link {
    color: inherit;
    text-decoration: none;
}


.vehicle-navbar {
    position: absolute;
}


.vehicle-page {
    min-height: 100vh;

    display: grid;
    grid-template-columns: 60% 40%;

    background: #0a0a0a;
}


/* =========================
   GALERÍA
========================= */

.vehicle-gallery {
    height: 100vh;

    display: flex;
    flex-direction: column;

    background: #050505;
}


.vehicle-main-image {
    position: relative;

    flex: 1;

    overflow: hidden;
}


.vehicle-main-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* FLECHAS */

.gallery-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 45px;
    height: 45px;

    border: 1px solid rgba(255,255,255,0.5);

    background: rgba(0,0,0,0.25);

    color: white;

    font-size: 18px;

    cursor: pointer;

    transition: 0.25s;
}


.gallery-arrow:hover {
    background: white;
    color: black;
}


.gallery-left {
    left: 25px;
}


.gallery-right {
    right: 25px;
}


/* MINIATURAS */

.vehicle-thumbnails {
    height: 100px;

    display: flex;

    gap: 4px;

    padding: 4px;

    background: #080808;
}


.thumbnail {
    width: 130px;
    height: 92px;

    object-fit: cover;

    opacity: 0.45;

    cursor: pointer;

    transition: 0.25s;
}


.thumbnail:hover {
    opacity: 0.8;
}


.thumbnail.active {
    opacity: 1;
}


.vehicle-content {
    padding: 160px 60px 60px;

    display: flex;
    flex-direction: column;

    justify-content: center;
}


.vehicle-brand {
    font-size: 10px;

    letter-spacing: 4px;

    color: #777;

    text-transform: uppercase;

    margin-bottom: 20px;
}


.vehicle-content h1 {
    font-size: 52px;

    font-weight: 400;

    letter-spacing: -2px;

    margin-bottom: 20px;
}


.vehicle-price {
    font-size: 22px;

    margin-bottom: 55px;
}


.vehicle-data {
    display: grid;

    grid-template-columns: 1fr 1fr;

    border-top: 1px solid #333;
}


.vehicle-data div {
    padding: 25px 0;

    border-bottom: 1px solid #333;
}


.vehicle-data span {
    display: block;

    font-size: 9px;

    letter-spacing: 2px;

    color: #777;

    margin-bottom: 8px;
}


.vehicle-data strong {
    font-size: 14px;
    font-weight: 400;
}


.vehicle-whatsapp {
    margin-top: 40px;

    background: white;
    color: black;

    text-decoration: none;

    padding: 18px 25px;

    text-align: center;

    font-size: 11px;

    letter-spacing: 2px;
}


@media (max-width: 800px) {

    .vehicle-page {
        grid-template-columns: 1fr;
    }


    .vehicle-gallery {
        height: 55vh;
    }


    .vehicle-content {
        padding: 60px 20px;
    }


    .vehicle-content h1 {
        font-size: 38px;
    }

}

/* =========================
   FULLSCREEN GALLERY
========================= */

.vehicle-main-image img {
    cursor: zoom-in;
}


.fullscreen-gallery {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.96);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: 0.3s;

    z-index: 1000;
}


.fullscreen-gallery.active {
    opacity: 1;
    visibility: visible;
}


.fullscreen-gallery img {
    max-width: 92%;
    max-height: 92%;

    object-fit: contain;
}


.fullscreen-close {
    position: absolute;

    top: 30px;
    right: 40px;

    border: none;
    background: transparent;

    color: white;

    font-size: 42px;
    font-weight: 200;

    cursor: pointer;

    z-index: 1001;
}


/* =========================
   FLECHAS GALERÍA
========================= */

.gallery-arrow {
    opacity: 0;

    transition:
        opacity 0.25s,
        background 0.25s,
        color 0.25s;
}


.vehicle-main-image:hover .gallery-arrow {
    opacity: 1;
}

/* =========================
   CONSIGNACIÓN
========================= */

.consignacion {
    background: #0a0a0a;
    color: white;

    padding: 120px 6%;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10%;
}


.consignacion-label,
.consignacion-form-title {
    font-size: 10px;
    letter-spacing: 4px;

    color: #777;

    margin-bottom: 30px;
}


.consignacion-left h2 {
    font-size: clamp(48px, 5vw, 78px);

    font-weight: 400;

    line-height: 0.96;

    letter-spacing: -4px;
}


.consignacion-description {
    max-width: 450px;

    margin-top: 35px;

    color: #888;

    font-size: 15px;

    line-height: 1.7;
}


/* FORMULARIO */

.consignacion-form {
    display: flex;

    flex-direction: column;

    gap: 28px;
}


.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.form-group label {
    font-size: 9px;

    letter-spacing: 2px;

    color: #777;

    text-transform: uppercase;
}


.form-group input,
.form-group textarea {
    width: 100%;

    background: transparent;

    border: none;
    border-bottom: 1px solid #333;

    color: white;

    font-family: 'Inter', sans-serif;

    font-size: 16px;

    padding: 15px 0;

    outline: none;

    transition: 0.3s;
}


.form-group textarea {
    min-height: 90px;

    resize: vertical;
}


.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: white;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #444;
}


.consignacion-submit {
    margin-top: 15px;

    padding: 20px 0;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: transparent;

    color: white;

    border: none;
    border-top: 1px solid #555;
    border-bottom: 1px solid #555;

    font-size: 11px;

    letter-spacing: 3px;

    cursor: pointer;

    transition: 0.3s;
}


.consignacion-submit:hover {
    background: white;

    color: black;

    padding-left: 15px;
    padding-right: 15px;
}


.consignacion-submit span {
    font-size: 20px;
}


/* MOBILE */

@media (max-width: 800px) {

    .consignacion {
        grid-template-columns: 1fr;

        padding: 80px 20px;

        gap: 70px;
    }


    .consignacion-left h2 {
        font-size: 50px;

        letter-spacing: -3px;
    }


    .form-row {
        grid-template-columns: 1fr;
    }

}

/* =========================
   CONCEPTO
========================= */

.concept-body {
    background: #090909;
    color: white;
}


.concept-navbar {
    position: absolute;
}


/* HERO */

.concept-hero {
    min-height: 100vh;

    display: flex;
    align-items: flex-end;

    padding: 160px 6% 100px;

    background: #090909;
}


.concept-hero-content {
    max-width: 1150px;
}


.concept-label {
    font-size: 10px;

    letter-spacing: 4px;

    color: #777;

    margin-bottom: 35px;
}


.concept-hero h1 {
    font-size: clamp(70px, 9vw, 145px);

    font-weight: 400;

    line-height: 0.88;

    letter-spacing: -7px;
}


.concept-intro {
    max-width: 530px;

    margin-top: 45px;

    font-size: 16px;

    line-height: 1.7;

    color: #888;
}


/* SECCIONES */

.concept-section {
    min-height: 75vh;

    display: grid;

    grid-template-columns: 20% 80%;

    padding: 110px 6%;

    border-top: 1px solid #222;

    background: #090909;
}


.concept-light {
    background: #f4f4f2;

    color: #111;

    border-top: none;
}


.concept-number {
    font-size: 11px;

    letter-spacing: 3px;

    color: #666;
}


.concept-content {
    max-width: 850px;
}


.concept-small-title {
    font-size: 10px;

    letter-spacing: 4px;

    color: #777;

    margin-bottom: 30px;
}


.concept-content h2 {
    font-size: clamp(45px, 5.5vw, 82px);

    font-weight: 400;

    line-height: 0.98;

    letter-spacing: -4px;
}


.concept-content > p:last-of-type {
    max-width: 520px;

    margin-top: 40px;

    color: #888;

    line-height: 1.7;

    font-size: 15px;
}


.concept-light .concept-content > p:last-of-type {
    color: #666;
}


.concept-link {
    display: inline-block;

    margin-top: 40px;

    color: white;

    text-decoration: none;

    font-size: 10px;

    letter-spacing: 3px;

    border-bottom: 1px solid #555;

    padding-bottom: 8px;
}


/* FINAL */

.concept-end {
    min-height: 80vh;

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 100px 6%;

    background: #050505;
}


.concept-end p {
    font-size: 10px;

    letter-spacing: 4px;

    color: #666;

    margin-bottom: 35px;
}


.concept-end h2 {
    font-size: clamp(85px, 12vw, 180px);

    font-weight: 400;

    line-height: 0.8;

    letter-spacing: -8px;
}


.concept-end a {
    width: fit-content;

    margin-top: 55px;

    color: white;

    text-decoration: none;

    font-size: 10px;

    letter-spacing: 3px;

    border-bottom: 1px solid #555;

    padding-bottom: 8px;
}


/* MOBILE */

@media (max-width: 800px) {

    .concept-hero {
        min-height: 90vh;

        padding: 130px 20px 70px;
    }


    .concept-hero h1 {
        font-size: 60px;

        letter-spacing: -4px;
    }


    .concept-intro {
        font-size: 14px;
    }


    .concept-section {
        min-height: auto;

        grid-template-columns: 1fr;

        gap: 45px;

        padding: 80px 20px;
    }


    .concept-content h2 {
        font-size: 46px;

        letter-spacing: -3px;
    }


    .concept-end {
        min-height: 70vh;

        padding: 80px 20px;
    }


    .concept-end h2 {
        font-size: 78px;

        letter-spacing: -5px;
    }

}

/* =========================
   CONTACTO
========================= */

.contacto {
    background: #f4f4f2;
    color: #111;

    padding: 120px 6%;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10%;
}


.contacto-label {
    font-size: 10px;

    letter-spacing: 4px;

    color: #777;

    margin-bottom: 30px;
}


.contacto-left h2 {
    font-size: clamp(60px, 7vw, 110px);

    font-weight: 400;

    line-height: 0.95;

    letter-spacing: -5px;
}


.contacto-description {
    max-width: 430px;

    margin-top: 35px;

    font-size: 15px;

    line-height: 1.7;

    color: #777;
}


.contacto-right {
    display: flex;
    flex-direction: column;

    justify-content: center;
}


.contacto-link {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 28px 0;

    border-top: 1px solid #cfcfcb;

    color: #111;

    text-decoration: none;

    font-size: 12px;

    letter-spacing: 3px;

    transition: 0.25s;
}


.contacto-link:last-child {
    border-bottom: 1px solid #cfcfcb;
}


.contacto-link span {
    font-size: 20px;

    transition: 0.25s;
}


.contacto-link:hover {
    padding-left: 12px;
    padding-right: 12px;
}


.contacto-link:hover span {
    transform: translateX(4px);
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #050505;

    color: white;

    padding: 28px 6%;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;

    font-size: 9px;

    letter-spacing: 2px;

    border-top: 1px solid #1d1d1d;
}


.footer-center {
    text-align: center;

    color: #666;
}


.footer-right {
    text-align: right;

    color: #666;
}


/* MOBILE */

@media (max-width: 800px) {

    .contacto {
        grid-template-columns: 1fr;

        padding: 80px 20px;

        gap: 70px;
    }


    .contacto-left h2 {
        font-size: 64px;

        letter-spacing: -4px;
    }


    .footer {
        grid-template-columns: 1fr;

        gap: 12px;

        padding: 28px 20px;
    }


    .footer-center,
    .footer-right {
        text-align: left;
    }

}

/* =====================================================
   ADMIN
===================================================== */

.admin-body {
    background: #080808;
    color: white;
}


/* LOGIN */

.admin-login {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}


.admin-login-box {
    width: 100%;

    max-width: 440px;
}


.admin-logo {
    color: white;

    text-decoration: none;

    font-size: 19px;

    letter-spacing: 4px;

    font-weight: 500;
}


.admin-label {
    margin-top: 70px;

    font-size: 9px;

    letter-spacing: 4px;

    color: #666;
}


.admin-login-box h1 {
    margin-top: 20px;

    font-size: 64px;

    font-weight: 400;

    letter-spacing: -4px;
}


.admin-login-form {
    margin-top: 70px;

    display: flex;

    flex-direction: column;

    gap: 35px;
}


.admin-field {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.admin-field label {
    font-size: 9px;

    letter-spacing: 2px;

    color: #666;
}


.admin-field input {
    width: 100%;

    padding: 16px 0;

    border: none;

    border-bottom: 1px solid #333;

    background: transparent;

    color: white;

    font-family: 'Inter', sans-serif;

    font-size: 16px;

    outline: none;
}


.admin-field input:focus {
    border-bottom-color: white;
}


.admin-login-button {
    margin-top: 20px;

    padding: 20px 0;

    display: flex;

    justify-content: space-between;

    background: transparent;

    border: none;

    border-top: 1px solid #555;
    border-bottom: 1px solid #555;

    color: white;

    font-size: 10px;

    letter-spacing: 3px;

    cursor: pointer;
}


.admin-login-button span {
    font-size: 18px;
}


.admin-error {
    min-height: 20px;

    font-size: 12px;

    color: #aaa;
}



/* PANEL */

.admin-panel {
    min-height: 100vh;

    background: #f4f4f2;

    color: #111;
}


.admin-panel[hidden],
.admin-login[hidden] {
    display: none;
}


.admin-header {
    height: 85px;

    padding: 0 5%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #090909;

    color: white;
}


.admin-header > div {
    display: flex;

    align-items: center;

    gap: 25px;
}


.admin-header-label {
    font-size: 9px;

    letter-spacing: 3px;

    color: #666;
}


.admin-logout {
    background: transparent;

    color: #aaa;

    border: none;

    font-size: 9px;

    letter-spacing: 2px;

    cursor: pointer;
}


.admin-logout:hover {
    color: white;
}


.admin-content {
    width: 90%;

    max-width: 1500px;

    margin: auto;

    padding: 90px 0 130px;
}


.admin-welcome {
    padding-bottom: 90px;
}


.admin-welcome .admin-label {
    margin-top: 0;
}


.admin-welcome h1 {
    margin-top: 15px;

    font-size: clamp(
        60px,
        8vw,
        120px
    );

    font-weight: 400;

    letter-spacing: -6px;
}


#admin-user-email {
    margin-top: 20px;

    color: #777;

    font-size: 13px;
}



/* SECCIONES */

.admin-section {
    padding: 70px 0;

    border-top: 1px solid #ccc;
}


.admin-section-header {
    margin-bottom: 40px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;
}


.admin-section-header .admin-label {
    margin-top: 0;

    margin-bottom: 10px;
}


.admin-section-header h2 {
    font-size: 45px;

    font-weight: 400;

    letter-spacing: -2px;
}


.admin-primary-button {
    background: #111;

    color: white;

    border: none;

    padding: 16px 22px;

    font-size: 9px;

    letter-spacing: 2px;

    cursor: pointer;
}



/* LISTAS */

.admin-list {
    display: flex;

    flex-direction: column;
}


.admin-vehicle-item {
    display: grid;

    grid-template-columns:
        150px
        1fr
        130px
        90px;

    align-items: center;

    gap: 25px;

    padding: 15px 0;

    border-top: 1px solid #d4d4d0;
}


.admin-vehicle-item:last-child {
    border-bottom:
        1px solid #d4d4d0;
}


.admin-vehicle-item img {
    width: 150px;
    height: 90px;

    object-fit: cover;
}


.admin-vehicle-info h3 {
    font-size: 16px;

    font-weight: 500;
}


.admin-vehicle-info p {
    margin-top: 7px;

    font-size: 12px;

    color: #777;
}


.admin-status {
    font-size: 9px;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.admin-status-disponible {
    color: #367b47;
}


.admin-status-reservado {
    color: #9a7520;
}


.admin-status-vendido {
    color: #888;
}


.admin-item-button {
    background: transparent;

    border: 1px solid #bbb;

    padding: 11px;

    font-size: 9px;

    letter-spacing: 2px;

    cursor: pointer;
}



/* CONSIGNACIONES */

.admin-consignment-item {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 30px;

    padding: 25px 0;

    border-top: 1px solid #d4d4d0;
}


.admin-consignment-item:last-child {
    border-bottom:
        1px solid #d4d4d0;
}


.admin-consignment-item h3 {
    font-size: 17px;

    font-weight: 500;
}


.admin-consignment-item p {
    margin-top: 6px;

    font-size: 12px;

    color: #777;
}


.admin-consignment-item a {
    color: #111;

    font-size: 13px;

    text-decoration: none;
}


.admin-lead-name {
    color: #111 !important;
}



/* MOBILE */

@media (max-width: 800px) {

    .admin-login-box h1 {
        font-size: 54px;
    }


    .admin-header {
        padding: 0 20px;
    }


    .admin-header-label {
        display: none;
    }


    .admin-content {
        width: auto;

        padding: 70px 20px 100px;
    }


    .admin-welcome h1 {
        font-size: 62px;

        letter-spacing: -4px;
    }


    .admin-section-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 25px;
    }


    .admin-primary-button {
        width: 100%;
    }


    .admin-vehicle-item {
        grid-template-columns:
            90px
            1fr;

        gap: 15px;
    }


    .admin-vehicle-item img {
        width: 90px;
        height: 70px;
    }


    .admin-status,
    .admin-item-button {
        grid-column: 2;
    }


    .admin-item-button {
        width: fit-content;
    }


    .admin-consignment-item {
        grid-template-columns: 1fr;

        gap: 15px;
    }

}

/* =====================================================
   ADMIN - NUEVO VEHÍCULO
===================================================== */

.admin-modal {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.85);

    display: none;

    align-items: flex-start;
    justify-content: flex-end;

    z-index: 2000;

    overflow-y: auto;
}


.admin-modal.active {
    display: flex;
}


.admin-modal-content {
    width: min(720px, 100%);

    min-height: 100vh;

    background: #0a0a0a;

    color: white;

    padding: 55px;

    box-shadow: -20px 0 70px rgba(0, 0, 0, 0.35);
}


.admin-modal-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 60px;
}


.admin-modal-header .admin-label {
    margin-top: 0;
    margin-bottom: 12px;
}


.admin-modal-header h2 {
    font-size: 48px;

    font-weight: 400;

    letter-spacing: -3px;
}


.admin-modal-close {
    background: transparent;

    border: none;

    color: white;

    font-size: 38px;

    font-weight: 200;

    cursor: pointer;
}


.admin-vehicle-form {
    display: flex;

    flex-direction: column;

    gap: 30px;
}


.admin-form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


.admin-vehicle-form select,
.admin-vehicle-form textarea {
    width: 100%;

    padding: 16px 0;

    border: none;
    border-bottom: 1px solid #333;

    background: #0a0a0a;

    color: white;

    font-family: 'Inter', sans-serif;

    font-size: 16px;

    outline: none;
}


.admin-vehicle-form textarea {
    min-height: 110px;

    resize: vertical;
}


.admin-vehicle-form input[type="file"] {
    padding: 18px 0;

    cursor: pointer;
}


.admin-field-help {
    font-size: 11px;

    line-height: 1.5;

    color: #666;
}


.admin-publish-button {
    width: 100%;

    margin-top: 20px;

    padding: 22px 0;

    display: flex;

    align-items: center;
    justify-content: space-between;

    background: white;

    color: black;

    border: none;

    font-size: 10px;

    letter-spacing: 3px;

    cursor: pointer;

    transition: 0.25s;
}


.admin-publish-button:hover {
    padding-left: 18px;
    padding-right: 18px;
}


.admin-publish-button:disabled {
    opacity: 0.5;

    cursor: wait;
}


.admin-publish-button span {
    font-size: 20px;
}


@media (max-width: 800px) {

    .admin-modal-content {
        padding: 35px 20px;

        width: 100%;
    }


    .admin-modal-header h2 {
        font-size: 40px;
    }


    .admin-form-row {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   ADMIN - EDITAR FOTOS
===================================================== */

.admin-edit-images {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-top: 10px;
}


.admin-edit-image {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #161616;
}


.admin-edit-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.admin-delete-image {
    position: absolute;

    top: 8px;
    right: 8px;

    width: 32px;
    height: 32px;

    border: none;

    background: rgba(0, 0, 0, 0.8);

    color: white;

    font-size: 18px;

    cursor: pointer;
}


.admin-delete-image:hover {
    background: white;

    color: black;
}


@media (max-width: 800px) {

    .admin-edit-images {
        grid-template-columns:
            repeat(2, 1fr);
    }

}



/* =====================================================
   ADMIN - ORDENAR FOTOS
===================================================== */

.admin-image-order-help {
    grid-column: 1 / -1;

    margin-bottom: 4px;

    color: #777;

    font-size: 9px;

    letter-spacing: 2px;

    line-height: 1.5;
}


.admin-image-order-help.error {
    color: #c45a5a;
}


.admin-edit-image {
    cursor: grab;

    user-select: none;

    transition:
        opacity 0.18s,
        transform 0.18s,
        outline-color 0.18s;
}


.admin-edit-image:active {
    cursor: grabbing;
}


.admin-edit-image.dragging {
    opacity: 0.38;

    transform: scale(0.97);

    outline: 1px solid rgba(255, 255, 255, 0.65);
}


.admin-image-drag-handle {
    position: absolute;

    left: 8px;
    bottom: 8px;

    padding: 7px 9px;

    background: rgba(0, 0, 0, 0.78);

    color: white;

    font-size: 8px;

    letter-spacing: 1.5px;

    pointer-events: none;
}


@media (max-width: 800px) {

    .admin-image-drag-handle {
        font-size: 7px;
    }

}

/* =====================================================
   MOBILE - AJUSTES FINALES
===================================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}


/* =====================================================
   MOBILE GENERAL
===================================================== */

@media (max-width: 768px) {

    /* =========================
       NAVBAR
    ========================= */

    .navbar {
        width: 100%;
        padding: 26px 20px;

        box-sizing: border-box;
    }

    .logo {
        font-size: 17px;
        letter-spacing: 5px;
    }

    .nav-links,
    .nav-contact {
        display: none;
    }


    /* =========================
       HERO HOME
    ========================= */

    .hero {
        width: 100%;

        height: auto;
        min-height: 100svh;

        padding: 105px 20px 95px;

        box-sizing: border-box;

        display: flex;
        align-items: flex-start;

        background: #000;
    }

    .hero::before {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.14) 28%,
            rgba(0, 0, 0, 0.70) 63%,
            rgba(0, 0, 0, 1) 100%
        );
    }

    .hero::after {
        width: 72vw;
        max-width: 360px;

        right: 50%;
        top: 33%;

        transform: translate(50%, -50%);

        background-image: url("assets/herofondo.png");
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;

        opacity: 0.95;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;

        margin-top: 47svh;
        padding: 0;

        box-sizing: border-box;
    }

    .hero-small {
        margin-bottom: 22px;

        font-size: 9px;
        letter-spacing: 3px;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;

        font-size: clamp(40px, 10.5vw, 48px);

        line-height: 0.92;

        letter-spacing: -2.5px;

        white-space: normal;
    }

    .hero-description {
        width: 100%;
        max-width: 330px;

        margin-top: 26px;

        font-size: 15px;
        line-height: 1.5;
    }


    /* =========================
       BOTONES HERO
    ========================= */

    .hero-buttons {
        width: 100%;

        margin-top: 30px;

        display: flex;
        flex-direction: column;

        gap: 12px;
    }

    .hero-buttons .button {
        width: 100%;

        text-align: center;

        box-sizing: border-box;
    }


    /* =========================
       HERO BOTTOM
    ========================= */

    .hero-bottom {
        left: 20px;
        right: 20px;

        bottom: 24px;

        width: auto;

        font-size: 8px;
        letter-spacing: 2px;
    }


    /* =========================
       STOCK
    ========================= */

    .stock {
        width: 100%;

        padding: 70px 20px 80px;

        box-sizing: border-box;
    }

    .stock-header {
        flex-direction: column;
        align-items: flex-start;

        gap: 10px;
    }

    .stock-header h2 {
        font-size: 34px;
    }

    .cars-grid {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 35px;
    }

    .car-card {
        width: 100%;
        min-width: 0;
    }

    .car-card img {
        width: 100%;
        height: auto;

        aspect-ratio: 4 / 3;

        object-fit: cover;
        object-position: center;
    }

    .car-info {
        width: 100%;

        gap: 15px;
    }

    .car-info > div {
        min-width: 0;
    }

    .car-info h3 {
        font-size: 16px;
    }

    .car-info span {
        white-space: nowrap;
    }


    /* =========================
       FICHA DEL VEHÍCULO
    ========================= */

    .vehicle-page {
        display: block;

        width: 100%;
    }

    .vehicle-gallery {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .vehicle-main-image {
        width: 100%;
        aspect-ratio: 4 / 3;

        flex: none;
        min-height: 0;
    }

    .vehicle-main-image img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;

        display: block;
    }

    .vehicle-thumbnails {
        width: 100%;

        height: 82px;

        overflow-x: auto;
        overflow-y: hidden;
    }

    .thumbnail {
        flex: 0 0 105px;

        width: 105px;
        height: 74px;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;

        opacity: 1;
    }

    .gallery-left {
        left: 12px;
    }

    .gallery-right {
        right: 12px;
    }

    .vehicle-content {
        width: 100%;

        padding: 55px 20px 70px;

        box-sizing: border-box;
    }

    .vehicle-content h1 {
        font-size: 38px;

        line-height: 1;

        letter-spacing: -2px;
    }

    .vehicle-price {
        margin-bottom: 40px;
    }

    .vehicle-data {
        grid-template-columns: 1fr 1fr;
    }


    /* =========================
       CONSIGNACIÓN
    ========================= */

    .consignacion {
        width: 100%;

        grid-template-columns: 1fr;

        padding: 80px 20px;

        gap: 65px;

        box-sizing: border-box;
    }

    .consignacion-left h2 {
        font-size: 46px;

        letter-spacing: -3px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }


    /* =========================
       CONTACTO
    ========================= */

    .contacto {
        width: 100%;

        grid-template-columns: 1fr;

        padding: 80px 20px;

        gap: 60px;

        box-sizing: border-box;
    }

    .contacto-left h2 {
        font-size: 56px;

        letter-spacing: -4px;
    }


    /* =========================
       CONCEPTO
    ========================= */

    .concept-hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .concept-hero h1 {
        font-size: 52px;

        line-height: 0.92;

        letter-spacing: -3px;
    }

    .concept-section {
        grid-template-columns: 1fr;

        padding: 80px 20px;

        gap: 40px;
    }

    .concept-content h2 {
        font-size: 42px;

        letter-spacing: -2px;
    }

    .concept-end {
        padding-left: 20px;
        padding-right: 20px;
    }

    .concept-end h2 {
        font-size: 60px;

        letter-spacing: -4px;
    }


    /* =========================
       FOOTER
    ========================= */

    .footer {
        grid-template-columns: 1fr;

        gap: 12px;

        padding: 28px 20px;
    }

    .footer-center,
    .footer-right {
        text-align: left;
    }


    /* =========================
       FULLSCREEN
    ========================= */

    .fullscreen-gallery img {
        max-width: 96%;
        max-height: 85%;
    }

    .fullscreen-close {
        top: 18px;
        right: 20px;
    }

}

/* =====================================================
   ESTADO RESERVADO
===================================================== */

.car-image-wrapper {
    position: relative;
}


.car-status-badge {
    position: absolute;

    top: 18px;
    left: 18px;

    padding: 9px 13px;

    background: rgba(10, 10, 10, 0.88);

    color: white;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 2px;

    backdrop-filter: blur(8px);
}


@media (max-width: 768px) {

    .car-status-badge {
        top: 12px;
        left: 12px;

        padding: 8px 11px;

        font-size: 8px;
    }

}