body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f5f5f5;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

.header-premium {
    background-color: #1e88e5;
    padding: 25px 50px;
    color: white;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
   
}

.header-content .logo {
    width: 300px;
    height:300px;
    margin-bottom: 40px;
}

.header-content h1 {
    margin: 0;
    font-size: 100px;
    font-weight: bold;
    text-align: center;
}

nav {
    text-align: center;
    margin-top: 100px;
    
}

nav a {
    font-size: 50px;
    color: white;
    margin-right: 50px;
    text-decoration:none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}


.lista-autos {
    font-size: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 40px;
}

.auto {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 100px 100px rgba(2, 2, 2, 0.15);
    transition: 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.auto.visible {
    opacity: 1;
    transform: translateY(0);
}

.auto:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.auto img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 768px) {
    .lista-autos {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .lista-autos {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   PÁGINA DE DETALLES (solo foto + nombre)
=========================== */

.detalle-auto {
    max-width: 650px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.detalle-auto img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

header h1,
.detalle-auto h2 {
    text-align: center;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   BOTONES
=========================== */

.btn-regresar {
    display: inline-block;
    background: #444;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 15px;
}

.btn-whatsapp {
    display: block;
    background: #25D366;
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.btn-whatsapp.us {
    background: #128C7E;
}

/* ===========================
   BOTÓN FLOTANTE WHATSAPP
=========================== */

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 999;
}

.whatsapp-main-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-main-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

.whatsapp-options {
    font-size: 50px;
    position: absolute;
    bottom: 100px;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    padding: 80px;
    display: none;
    flex-direction: column;
    gap: 40px;
    min-width: 250px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.whatsapp-options.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   ANIMACIONES GLOBALES
=========================== */

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   GALERÍA INTERNA (Opción B)
=========================== */

.galeria-fotos {
    font-size: 30px;
    padding: 100px 100px;
    background: #fff;
    margin:10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.galeria-fotos h2 {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 70px;
}

.fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-top: 10px;
}

.fotos-grid img {
    width: 100%;
    border-radius: 8px;
}
.whatsapp-icon {
    width: 80%;
    height: 90%;
    object-fit: contain;
}

/* ===========================
   CARRUSEL ESTILO MARKETPLACE
=========================== */

.carousel {
    position: relative;
    max-width: 420px; /* tamaño perfecto estilo marketplace */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 10px;
}

/* Flechas */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    padding: 10px 14px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Adaptación a celular */
@media (max-width: 480px) {
    .carousel {
        max-width: 95%;
    }

    .carousel img {
        height: 240px;
    }
}

/* ===========================
   FOOTER NEGRO PROFESIONAL
=========================== */

.footer {
    background-color: #000; /* Fondo negro */
    color: #fff; /* Texto blanco */
    padding: 25px 15px;
    text-align: center;
    margin-top: 100%;
    font-size: 30px;
}

.footer-top h3 {
    color: #fff;
}

.footer-top p {
    color: #ccc;
}

.footer-contact p {
    color: #ddd;
}

.footer-bottom {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #444;
    color: #aaa;
}
/* ===========================
   BOTÓN PRINCIPAL (HOME)
=========================== */

.btn-principal {
    display: inline-block;
    background-color: #12f48e;
    color: white;
    padding: 50px 200px;
    font-size: 40px;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 100px;
    text-align: center;
    transition: 0.3s ease;
}

.btn-principal:hover {
    background-color: #1565c0;
    transform: scale(1.05);
}

/* Centrado automático */
.hero {
    text-align: center;
}

/* Adaptación a celular */
@media (max-width: 480px) {
    .btn-principal {
        width: 90%;
        font-size: 20px;
        padding: 14px 0;
    }
}

/* ===========================
   CONTACTO CENTRADO PREMIUM
=========================== */

.contacto-info {
    max-width: 100%;
    margin: 40px auto;
    text-align: center;
    background: #ffffff;
    padding: 100px 100px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-ubicacion {
    display: inline-block;
    background-color: #1e88e5;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    margin-top: 15px;
    transition: 0.3s ease;
}

.btn-ubicacion:hover {
    background-color: #1565c0;
    transform: scale(1.05);
}
/* ===========================
   CONTACTO CENTRADO PREMIUM
=========================== */

.contacto-info {
    max-width: 100%;
    margin: 100% auto;
    margin-top: 10px;
    font-size: 30px;
    text-align:justify;
    background: #d8d6d6;
    padding: 200px 200px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-ubicacion {
    display: inline-block;
    background-color: #1e88e5;
    color: white;
    padding: 40px 100px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 30px;
    margin-top: 25px;
    transition: 0.3s ease;
}

.btn-ubicacion:hover {
    background-color: #1565c0;
    transform: scale(1.05);
}
/* ===========================
   SOBRE NOSOTROS CENTRADO PREMIUM
=========================== */

.sobre-info {
    font-size: 50px;
    max-width: 100%;
    margin: 10px auto;
    text-align: center;
    background: #ffffff;
    padding: 100px 100px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sobre-info h2 {
    color: #1e88e5;
    margin-bottom: 20px;
}

.sobre-info h3 {
    color: #1565c0;
    margin-top: 25px;
}

.sobre-info ul {
    list-style: none;
    padding: 0;
}

.sobre-info li {
    margin-bottom: 10px;
    font-size: 50px;
}
/* ===========================
   FAQ CENTRADO PREMIUM
=========================== */

.faq-info {
    font-size: 50px;
    max-width: 100%;
    margin: 10px auto;
    text-align: center;
    background: #e3e0e0;
    padding: 100px 100px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.faq-info h2 {
    color: #1e88e5;
    margin-bottom: 200px;
}

.faq-info h3 {
    color: #1565c0;
    margin-bottom: 1px;
}

.faq-info p {
    margin-bottom: 150px;
    font-size: 50px;
}
/* ===========================
   POLÍTICAS DE RENTA CENTRADO PREMIUM
=========================== */

.politicas-info {
    font-size: 50px;
    max-width: 100%;
    margin: 10px auto;
    text-align: center;
    background: #c7c5c5;
    padding: 100px 100px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.politicas-info h2 {
    color: #1e88e5;
    margin-bottom: 200px;
}

.politicas-info h3 {
    color: #1565c0;
    margin-bottom: 1px;
}

.politicas-info ul {
    list-style: none;
    padding: 0;
}

.politicas-info li {
    margin-bottom: 10px;
    font-size: 50px;
}

.politicas-info p {
    margin-bottom: 150px;
    font-size: 50px;
}
/* ===========================
   INICIO - POR QUÉ ELEGIRNOS CENTRADO
=========================== */

.inicio-info {
    font-size: 50px;
    max-width: 100%;
    margin: 100px auto;
    text-align: center;
    background: #efd9d9;
    padding: 200px 200px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.inicio-info h2 {
    color: #1e88e5;
    margin-bottom: 200px;
}

.inicio-info ul {
    list-style: none;
    padding: 0;
}

.inicio-info li {
    margin-bottom: 150px;
    font-size: 50px;
}
/* ===========================
   BOTÓN MODO OSCURO / CLARO
=========================== */

.modo-btn {
    position: absolute;
    right: 10px;
    top: 50px;
    background: #e2e0e0;
    border: none;
    padding: 10px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 30px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: 0.3s ease;
}

.modo-btn:hover {
    transform: scale(1.1);
}


/* ===========================
   MODO OSCURO GLOBAL
=========================== */

body.dark {
    background-color: #121212;
    color: #ffffff;
}

body.dark .header-premium {
    background-color: #0d47a1;
}

body.dark .inicio-info,
body.dark .sobre-info,
body.dark .faq-info,
body.dark .politicas-info,
body.dark .contacto-info {
    background: #1e1e1e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

body.dark a {
    color: #90caf9;
}

/* ============================================
   FIX FINAL PARA TEXTOS INVISIBLES EN MODO OSCURO
   (Autos, Galería y Detalles)
============================================ */

/* Fondo y texto de cada tarjeta de auto */
body.dark .auto {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
}

/* Texto dentro de cada tarjeta */
body.dark .auto h2,
body.dark .auto p {
    color: #ffffff !important;
}

/* Hover de tarjetas */
body.dark .auto:hover {
    background-color: #2a2a2a !important;
}

/* Botones dentro de autos o galerías */
body.dark .auto a,
body.dark .auto button {
    color: #ffffff !important;
    background-color: #0d47a1 !important;
    border-color: #0d47a1 !important;
}

body.dark .auto a:hover,
body.dark .auto button:hover {
    background-color: #1565c0 !important;
}
/* ===========================
   LIGHTBOX PRO
=========================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
    z-index: 9999;
}

.lightbox.open {
    visibility: visible;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Flechas PC */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 40px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
}

.lightbox-arrow.left { left: 20px; }
.lightbox-arrow.right { right: 20px; }

.lightbox-arrow:hover {
    background: rgba(0,0,0,0.7);
}


body.dark .detalle-auto {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
}

body.dark .detalle-auto h1,
body.dark .detalle-auto h2,
body.dark .detalle-auto p,
body.dark .detalle-auto li,
body.dark .detalle-auto a,
body.dark .detalle-auto span {
    color: #ffffff !important;
}

body.dark .detalle-auto ul li {
    color: #ffffff !important;
}

body.dark .detalle-auto .btn-whatsapp,
body.dark .detalle-auto .btn-regresar {
    background-color: #0d47a1 !important;
    color: #ffffff !important;
    border-color: #0d47a1 !important;
}

body.dark .detalle-auto .btn-whatsapp:hover,
body.dark .detalle-auto .btn-regresar:hover {
    background-color: #1565c0 !important;
}

/* Imagen */
body.dark .detalle-auto img {
    border: 2px solid #444 !important;
}


body.dark .galeria-fotos {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
}

body.dark .galeria-fotos h2 {
    color: #ffffff !important;
}

body.dark .galeria-fotos .btn-regresar {
    background-color: #0d47a1 !important;
    color: #ffffff !important;
    border-color: #0d47a1 !important;
}

body.dark .galeria-fotos .btn-regresar:hover {
    background-color: #1565c0 !important;
}

body.dark .galeria-fotos img {
    border: 2px solid #444 !important;
}

body.dark .carousel-btn {
    background-color: #0d47a1 !important;
    color: #ffffff !important;
    border: 1px solid #0d47a1 !important;
}

body.dark .carousel-btn:hover {
    background-color: #1565c0 !important;
}

.hero h2 {
    margin-top: 100px;
    font-size: 40px; 
    font-weight: bold;
}
.hero p {
    font-size: 40px;
    color: #555; /* opcional */
}



