:root {
    /* --dark-gray: #000F50; */
    --dark-gray: #1a1a1a;
    --accent-orange: #e1a700;
    --gray: red;
    --white: #fff;
    --black: #000;
    --light-gray: #f2f2f2;
    --mid-gray: #b3b3b3;

}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
    height: 100%;
    margin: 0;
}

.navbar {
    background-color: var(--dark-gray);
    padding: 15px 20px;
    transition: all 0.3s ease;
    max-height: 100px;
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 8px 12px;
    }
}

/* Estilos responsive para el logo y texto */
.navbar-brand {
    display: flex;
    align-items: center;
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1.4rem;
    white-space: normal;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.85rem;
        max-width: 160px;
        white-space: normal;
        line-height: 1.2;
    }

    .navbar-brand img {
        height: 40px;
        margin-right: 5px;
    }
}

@media (max-width: 400px) {
    .navbar-brand {
        font-size: 0.75rem;
        max-width: 130px;
    }

    .navbar-brand img {
        height: 35px;
    }
}

.navbar-brand:hover {
    color: var(--white);
}

.navbar-brand img {
    margin-right: 15px;
    height: 70px;
}

.navbar-toggler {
    border-color: var(--white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

#styleautos_ms {
    text-decoration: none;
    color: var(--accent-orange);
    transition: color 0.3s ease;
    font-size: 2rem;
    font-weight: 800;
}

/* Hacer el tamaño de letra de #styleautos_ms más pequeño en móviles */
@media (max-width: 576px) {
    #styleautos_ms {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    #styleautos_ms {
        font-size: 1.3rem;
    }
}

#styleautos_ms:hover {
    text-decoration: none;
    transition: color 0.3s ease;
    color: var(--white);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0 10px;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

/* AÑADIDO: estilos para móviles del menú desplegable */
@media (max-width: 991px) {

    .nav-link {
        font-size: 1rem;
        text-align: center;
        margin: 3px 0;
        padding: 8px;
    }

    .navbar-nav {
        gap: 1px;
        background-color: var(--dark-gray);
        border-radius: 15px;
        margin-top: 25px;
    }
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-orange);
    transition: all 0.3s ease;
}

.btn-custom {
    background-color: var(--accent-orange);
    color: var(--white);
    border: 2px solid var(--accent-orange);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--white);
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 131, 0, 0.2);
}

.btn-custom:active {
    transform: translateY(0);
}

#inicio {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

@media (max-width: 768px) {
    .hero {
        margin-top: 70px;
        min-height: 600px;
        /* AÑADIDO: altura mínima ajustada */
    }
}

@media (max-width: 576px) {
    .hero {
        margin-top: 60px;
        /* AÑADIDO: ajuste para navbar más pequeño */
        min-height: 500px;
        /* AÑADIDO: altura mínima ajustada */
    }
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 15, 80, 0.35); /* #000f50 con opacidad */
    background-color: rgba(26, 26, 26, 0.2);
    /* #1a1a1a con opacidad */
    z-index: 1;
}

/* ===== INDICADOR DE SCROLL ===== */
.scroll-indicator {
    position: absolute;
    bottom: 125px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-text {
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


#btn-descubreMas {
    background-color: var(--accent-orange);
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
}

#btn-descubreMas:hover {
    animation: exteriorGlow 1.5s ease-in-out infinite;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #btn-descubreMas {
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    #btn-descubreMas {
        font-size: 1rem;
        white-space: nowrap;
    }
}

@keyframes exteriorGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(225, 169, 0, 0.5),
            0 0 20px rgba(225, 169, 0, 0.3),
            0 0 30px rgba(225, 169, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(225, 169, 0, 0.9),
            0 0 40px rgba(225, 169, 0, 0.6),
            0 0 60px rgba(225, 169, 0, 0.4);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}


.section-heading {
    position: relative;
    font-weight: 700;
    margin-bottom: 40px;
    display: inline-block;
    color: var(--dark-gray);
}

.section-heading::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--accent-orange);
    bottom: -10px;
    left: 0;
}

/* =================================================== About Section ======================================================= */
.about-section {
    padding: 6rem 2rem;
    background-color: var(--light-gray);
}

.about-container {
    max-width: 2000px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.about-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}


/* Colores personalizados para las tarjetas */
.text-primary-blue {
    color: var(--dark-gray) !important;
}

.text-accent-orange {
    color: var(--accent-orange) !important;
}

.bg-accent-orange {
    background-color: var(--accent-orange) !important;
}


/* Badge de estado */
.badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    font-weight: 500;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

/* ==================================================== Sección Servicios ==================================================== */
#servicios {
    padding: 6rem 2rem;
    background-color: var(--white) !important;
}

.service-card {
    background-color: rgba(225, 169, 0, 0.099);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px var(--accent-orange, 0.1);
    border-color: var(--accent-orange);
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h4 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--mid-gray);
}


/* ======================================== ESTILOS PARA EL MODAL DE DETALLES DEL COCHE ======================================= */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 2px solid var(--accent-orange);
    padding: 1rem 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    background-color: var(--white);
}

/* Grid de características en el modal */
.car-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    font-size: 1.5rem;
    width: 30px;
}

.feature-item p {
    font-size: 1rem;
}

/* Media queries para el modal responsive */
@media (max-width: 992px) {
    .modal-dialog.modal-xl {
        max-width: 95%;
        margin: 1rem auto;
    }

    .car-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .modal-body {
        padding: 1rem !important;
    }

    .car-features-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .feature-item {
        gap: 0.8rem;
    }

    .feature-item i {
        font-size: 1.3rem;
    }

    .modal-header h5 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .modal-dialog.modal-xl {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 0.8rem !important;
    }

    .feature-item p {
        font-size: 0.9rem;
    }
}


/* ======================================================== FOOTER ========================================================= */
.footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #2a2a2a 100%);
    color: var(--white);
    position: relative;
    padding: 60px 0 0;
    margin-top: 0;
}

/* Efecto de luz superior */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
}

.footer-content {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); */
    grid-template-columns: 50% 30% 20%;
    gap: 40px;
    /* display: flex;
    justify-content: space-around;
    gap: 40px;
    margin-bottom: 50px; */
}

/* Columna 1 - Brand */
.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.footer-brand:hover .footer-logo {
    transform: scale(1.05);
}

.footer-brand-name {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Redes sociales */
.footer-social-title {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    color: var(--light-gray) !important;
}

/* Títulos de columnas */
.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-orange);
}

/* Menú de enlaces */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-menu a i {
    font-size: 0.7rem;
    color: var(--accent-orange);
    transition: transform 0.3s ease;
}

.footer-menu a:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}

.footer-menu a:hover i {
    transform: translateX(3px);
}

/* Información de contacto */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact li i {
    color: var(--accent-orange);
    width: 18px;
    margin-top: 3px;
}

.footer-contact-highlight {
    color: var(--white) !important;
    font-weight: 600;
}

.footer-contact-highlight i {
    color: var(--accent-orange) !important;
}

/* Copyright Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.copyright-brand {
    color: var(--accent-orange);
    font-weight: 600;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-orange);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

.developed-by {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.developed-by span {
    color: var(--accent-orange);
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-title {
        text-align: center;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-menu {
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 30px 0 0;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }

    .separator {
        display: none;
    }

    .payment-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .video-content h1 {
        font-size: 2.5rem;
    }

    .coches-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .contact-info,
    .form-container {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .video-content h1 {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .coche-feature {
        width: 100%;
    }
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 14px;
    color: var(--gray);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1120px) {
    .about-container {
        gap: 2rem;
        flex-direction: column;
        text-align: center;
    }

    .about-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 1.5rem;
    }

    .about-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    /* Hacer que la imagen no se salga por los lados en el móvil y que esté centrada en el medio */
    .about-image img {
        width: 75%;
        margin: 0 auto;
        display: block;
    }

    .section-heading {
        text-align: center;
        display: block;
    }

    .section-heading::after {
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 3rem 1rem;
    }

    .about-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .about-container {
        gap: 1.5rem;
    }
}

@media (max-width: 375px) {
    .about-section {
        padding: 2.5rem 0.8rem;
    }

    .about-section p {
        font-size: 0.95rem;
    }
}

/* Media Queries para la sección Servicios */
@media (max-width: 768px) {
    #servicios {
        padding: 4rem 1rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon i {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    #servicios {
        padding: 3rem 1rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-card h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 375px) {
    .navbar-brand {
        font-size: 0.9rem;
        max-width: 150px;
    }

    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 70px;
    }
}

@media (max-width: 768px) {
    .hero-video .desktop-video {
        display: none;
    }

    .hero-video .mobile-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (min-width: 769px) {
    .hero-video .mobile-image {
        display: none;
    }
}