/* RESET Y ESTILOS GLOBALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.5;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* MODO OSCURO (por defecto) */
body.dark-mode {
    background: #0a0c0f;
    color: #fff;
}

body.dark-mode::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(220, 38, 38, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 70% 60%, rgba(220, 38, 38, 0.05) 0%, transparent 40%),
                linear-gradient(135deg, #111318 0%, #1a1c24 100%);
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* MODO CLARO */
body.light-mode {
    background: #f5f7fa;
    color: #1e293b;
}

body.light-mode::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(220, 38, 38, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 70% 60%, rgba(220, 38, 38, 0.03) 0%, transparent 40%),
                linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== HEADER CON MENÚ HAMBURGUESA ===== */
header {
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body.dark-mode header {
    background: rgba(10, 12, 15, 0.8);
    backdrop-filter: blur(10px);
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 101;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 150px;
    width: auto;
    margin: -40px 0;
    filter: drop-shadow(0 0 15px rgba(220, 38, 38, 0.3));
    transition: all 0.3s ease;
    display: block;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(220, 38, 38, 0.5));
}

/* Botón menú hamburguesa */
.menu-toggle {
    display: none;
    background: #dc2626;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 101;
    animation: pulse 2s infinite;
}

.menu-toggle:hover {
    background: #b91c1c;
    transform: rotate(90deg) scale(1.1);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Controles del header */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 60px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    width: 300px;
    height: 300px;
}

body.dark-mode .nav-links a {
    color: #e5e7eb;
}

body.light-mode .nav-links a {
    color: #334155;
}

.nav-links a:hover {
    border-color: rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

body.dark-mode .nav-links a:hover {
    color: #fecaca;
}

body.light-mode .nav-links a:hover {
    color: #b91c1c;
}

.nav-links a.active {
    background: #dc2626;
    color: white !important;
    box-shadow: 0 10px 25px -5px #dc2626;
    animation: activePulse 2s infinite;
}

@keyframes activePulse {
    0%, 100% { box-shadow: 0 10px 25px -5px #dc2626; }
    50% { box-shadow: 0 15px 35px -5px #dc2626; }
}

.search-box {
    display: flex;
    background: rgba(255,255,255,0.05);
    border-radius: 60px;
    padding: 5px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    min-width: 280px;
    flex: 1;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #dc2626;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
    transform: scale(1.02);
}

body.light-mode .search-box {
    background: rgba(0,0,0,0.03);
}

.search-box input {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    outline: none;
    flex: 1;
    min-width: 0;
    width: 100%;
    transition: all 0.3s ease;
}

body.dark-mode .search-box input {
    color: white;
}

body.dark-mode .search-box input::placeholder {
    color: #6b7280;
    transition: opacity 0.3s ease;
}

body.dark-mode .search-box input:focus::placeholder {
    opacity: 0.5;
}

body.light-mode .search-box input {
    color: #1e293b;
}

body.light-mode .search-box input::placeholder {
    color: #94a3b8;
}

.search-box button {
    background: #dc2626;
    border: none;
    color: white;
    padding: 8px 28px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.search-box button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.search-box button:hover::before {
    width: 300px;
    height: 300px;
}

.search-box button:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

/* BOTÓN MODO OSCURO/CLARO */
.theme-toggle {
    background: #dc2626;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    background: #b91c1c;
    animation: none;
}

/* ===== TARJETAS DE VEHÍCULOS CON TAMAÑO FIJO ===== */
.vans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* CAMBIADO de auto-fit a auto-fill */
    gap: 30px;
    margin: 40px 0 60px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .vans-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        gap: 25px;
    }
}

.van-card {
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
    position: relative;
    width: 100%;
    animation: fadeIn 0.8s ease;
    animation-fill-mode: both;
    background: linear-gradient(145deg, #1e1e26, #16181f);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
}

body.light-mode .van-card {
    background: white;
}

.van-card:nth-child(1) { animation-delay: 0.1s; }
.van-card:nth-child(2) { animation-delay: 0.2s; }
.van-card:nth-child(3) { animation-delay: 0.3s; }
.van-card:nth-child(4) { animation-delay: 0.4s; }
.van-card:nth-child(5) { animation-delay: 0.5s; }
.van-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.van-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #dc2626;
    box-shadow: 0 30px 60px -15px #dc2626;
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1a1c24;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.van-card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc2626;
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
    z-index: 2;
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.status-badge.sold {
    background: #6b7280;
    color: white;
}

.status-badge.reserved {
    background: #f59e0b;
    color: white;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    word-wrap: break-word;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.9rem;
}

body.light-mode .card-title {
    color: #1e293b;
}

.van-card:hover .card-title {
    color: #dc2626;
}

.card-price {
    font-size: 2rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 12px;
    word-wrap: break-word;
    transition: transform 0.3s ease;
    min-height: 3rem;
}

.van-card:hover .card-price {
    transform: scale(1.05);
}

.card-specs {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    padding-top: 15px;
    flex-wrap: wrap;
    margin-top: auto;
    min-height: 60px;
}

body.dark-mode .card-specs {
    color: #9ca3af;
}

body.light-mode .card-specs {
    color: #64748b;
}

.card-specs span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-specs i {
    color: #dc2626;
}

/* ===== SECCIÓN SOBRE NOSOTROS ===== */
.about-section {
    background: linear-gradient(145deg, #1e1e26, #16181f);
    border-radius: 40px;
    padding: 60px;
    margin: 40px 0;
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.2);
    width: 100%;
    max-width: 1300px;
    box-sizing: border-box;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.light-mode .about-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.about-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
    word-wrap: break-word;
    animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-text h1 span {
    color: #dc2626;
    position: relative;
    display: inline-block;
}

.about-text h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #dc2626;
    border-radius: 3px;
    transform-origin: left;
    animation: expandWidth 0.8s ease forwards;
}

@keyframes expandWidth {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #9ca3af;
    text-align: left;
    word-wrap: break-word;
    max-width: 100%;
    animation: fadeIn 0.8s ease 0.2s both;
}

body.light-mode .about-description {
    color: #475569;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255,255,255,0.02);
    padding: 25px;
    border-radius: 25px;
    border: 1px solid rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.8s ease;
    animation-fill-mode: both;
}

.about-feature:nth-child(1) { animation-delay: 0.1s; }
.about-feature:nth-child(2) { animation-delay: 0.2s; }
.about-feature:nth-child(3) { animation-delay: 0.3s; }
.about-feature:nth-child(4) { animation-delay: 0.4s; }

.about-feature:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.05);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.about-feature i {
    font-size: 2rem;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    padding: 15px;
    border-radius: 18px;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.about-feature:hover i {
    transform: rotateY(180deg);
    background: #dc2626;
    color: white;
}

.about-feature h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
    word-wrap: break-word;
    transition: color 0.3s ease;
}

body.light-mode .about-feature h3 {
    color: #0f172a;
}

.about-feature:hover h3 {
    color: #dc2626;
}

.about-feature p {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

body.light-mode .about-feature p {
    color: #64748b;
}

.about-cta {
    background: rgba(220, 38, 38, 0.05);
    border-radius: 30px;
    padding: 30px;
    margin: 20px 0;
    border: 1px solid rgba(220, 38, 38, 0.2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.8s ease 0.5s both;
    transition: all 0.3s ease;
}

.about-cta:hover {
    border-color: #dc2626;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.about-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    word-wrap: break-word;
}

body.light-mode .about-cta h3 {
    color: #0f172a;
}

.about-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.about-whatsapp,
.about-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 200px;
    box-sizing: border-box;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.about-whatsapp::before,
.about-email::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.about-whatsapp:hover::before,
.about-email:hover::before {
    width: 300px;
    height: 300px;
}

.about-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: 2px solid transparent;
    flex: 1;
}

.about-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px -10px #25D366;
}

.about-email {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid rgba(220, 38, 38, 0.3);
    flex: 1;
}

body.light-mode .about-email {
    background: rgba(0,0,0,0.03);
    color: #334155;
}

.about-email:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateY(-3px) scale(1.02);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    background: rgba(220, 38, 38, 0.05);
    border-radius: 30px;
    padding: 30px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.8s ease 0.6s both;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    animation: scaleIn 0.5s ease;
    animation-fill-mode: both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(220, 38, 38, 0.1);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 5px;
    word-wrap: break-word;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    color: #fff;
}

.stat-label {
    font-size: 0.95rem;
    color: #9ca3af;
    word-wrap: break-word;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: #fff;
}

/* ===== MAPA EN SOBRE NOSOTROS ===== */
.about-map {
    margin-top: 40px;
    padding: 30px;
    background: rgba(220, 38, 38, 0.02);
    border-radius: 30px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    width: 100%;
    box-sizing: border-box;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.about-map h2 {
    font-size: 2rem;
    color: #dc2626;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    animation: slideInRight 0.6s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.map-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 45%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(220, 38, 38, 0.3);
    background: #1a1c24;
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
    border-color: #dc2626;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-address {
    margin: 20px 0 0;
    font-size: 1.1rem;
    color: #9ca3af;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 10px;
    animation: fadeIn 0.8s ease 0.8s both;
}

.map-address i {
    color: #dc2626;
    font-size: 1.3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #dc2626;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 20px auto 0;
    width: fit-content;
    position: relative;
    overflow: hidden;
}

.map-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.map-button:hover::before {
    width: 300px;
    height: 300px;
}

.map-button:hover {
    background: #b91c1c;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px #dc2626;
}

.map-button i {
    font-size: 1.1rem;
    animation: slideRight 1s infinite;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* ===== SECCIÓN VENDER ===== */
.sell-section {
    background: linear-gradient(145deg, #1e1e26, #16181f);
    border-radius: 40px;
    padding: 60px;
    margin: 40px 0;
    border: 1px solid rgba(220, 38, 38, 0.3);
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.2);
    width: 100%;
    box-sizing: border-box;
    animation: fadeInUp 0.8s ease;
}

body.light-mode .sell-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.sell-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    word-wrap: break-word;
    animation: slideInLeft 0.6s ease;
}

body.dark-mode .sell-section h2 {
    color: white;
}

body.light-mode .sell-section h2 {
    color: #0f172a;
}

.sell-section h2 span {
    color: #dc2626;
    position: relative;
    display: inline-block;
}

.sell-section h2 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #dc2626;
    border-radius: 3px;
    transform-origin: left;
    animation: expandWidth 0.8s ease forwards;
}

.sell-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: #9ca3af;
    word-wrap: break-word;
    animation: fadeIn 0.8s ease 0.2s both;
}

body.light-mode .sell-section p {
    color: #475569;
}

.sell-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.sell-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255,255,255,0.02);
    padding: 25px;
    border-radius: 25px;
    border: 1px solid rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.8s ease;
    animation-fill-mode: both;
}

.sell-feature:nth-child(1) { animation-delay: 0.1s; }
.sell-feature:nth-child(2) { animation-delay: 0.2s; }
.sell-feature:nth-child(3) { animation-delay: 0.3s; }

.sell-feature:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.05);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.sell-feature i {
    font-size: 2rem;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    padding: 12px;
    border-radius: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sell-feature:hover i {
    transform: rotateY(180deg);
    background: #dc2626;
    color: white;
}

.sell-feature h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    word-wrap: break-word;
    transition: color 0.3s ease;
}

body.light-mode .sell-feature h4 {
    color: #0f172a;
}

.sell-feature:hover h4 {
    color: #dc2626;
}

.sell-feature p {
    font-size: 0.95rem;
    margin: 0;
    color: #9ca3af;
    line-height: 1.5;
    word-wrap: break-word;
}

body.light-mode .sell-feature p {
    color: #64748b;
}

.sell-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    padding: 20px 50px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-top: 20px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease 0.4s both;
}

.sell-whatsapp::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.sell-whatsapp:hover::before {
    width: 300px;
    height: 300px;
}

.sell-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -10px #25D366;
}

.sell-whatsapp i {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

/* ===== FILTROS CONTRÁIBLES ===== */
.filters-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 0.8s ease;
}

.filter-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-chip {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.filter-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.filter-chip:hover::before {
    width: 300px;
    height: 300px;
}

body.dark-mode .filter-chip {
    color: #d1d5db;
}

body.light-mode .filter-chip {
    color: #475569;
    background: rgba(0,0,0,0.02);
}

.filter-chip:hover {
    border-color: #dc2626;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px #dc2626;
}

.filter-chip.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    animation: activePulse 2s infinite;
}

.sort-select {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 12px 40px 12px 24px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    min-width: 180px;
    transition: all 0.3s ease;
    color: white; /* AÑADE ESTA LÍNEA PARA MODO OSCURO */
}

body.dark-mode .sort-select {
    color: white; /* Texto blanco en modo oscuro */
    background-color: rgba(255,255,255,0.03);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

body.light-mode .sort-select {
    color: #1e293b; /* Texto oscuro en modo claro */
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.sort-select option {
    background: #1a1c24;
    color: white;
}

body.light-mode .sort-select option {
    background: white;
    color: #1e293b;
}

.sort-select:hover {
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.3);
}

.filter-toggle {
    display: none;
    background: #dc2626;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
    justify-content: center;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    background: #b91c1c;
    transform: scale(1.02);
}

/* ===== PÁGINA PRINCIPAL (SEO) ===== */
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #dc2626;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.page-description {
    font-size: 1.2rem;
    color: #9ca3af;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    animation: fadeIn 0.8s ease 0.2s both;
}

body.light-mode .page-description {
    color: #475569;
}

/* Ocultar elementos solo visualmente (para lectores de pantalla) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 10px;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 40px;
    border: 2px solid #dc2626;
    box-shadow: 0 50px 80px -20px #dc2626;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: auto;
    box-sizing: border-box;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

body.dark-mode .modal-content {
    background: linear-gradient(145deg, #1e1e26, #14161c);
}

body.light-mode .modal-content {
    background: white;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #b91c1c;
    transform: rotate(90deg) scale(1.1);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 30px 30px 0;
    width: 100%;
    box-sizing: border-box;
}

.modal-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.modal-gallery img:hover {
    border-color: #dc2626;
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.modal-gallery img.main-img {
    grid-column: span 4;
    height: 300px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 30px;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

body.light-mode .modal-title {
    color: #0f172a;
}

.modal-price {
    font-size: 3rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 25px;
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

body.dark-mode .modal-specs-grid {
    background: rgba(255,255,255,0.02);
}

body.light-mode .modal-specs-grid {
    background: #f8fafc;
}

.spec-item {
    text-align: center;
}

.spec-item i {
    font-size: 1.8rem;
    color: #dc2626;
    margin-bottom: 8px;
}

.spec-item .spec-label {
    font-size: 0.9rem;
}

body.dark-mode .spec-item .spec-label {
    color: #9ca3af;
}

body.light-mode .spec-item .spec-label {
    color: #64748b;
}

.spec-item .spec-value {
    font-weight: 700;
    font-size: 1.2rem;
}

.modal-description {
    margin-bottom: 30px;
}

.modal-description h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

body.light-mode .modal-description h3 {
    color: #0f172a;
}

.modal-description p {
    line-height: 1.7;
    font-size: 1rem;
}

body.dark-mode .modal-description p {
    color: #9ca3af;
}

body.light-mode .modal-description p {
    color: #475569;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 25px 0;
}

.features-list li {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
}

body.dark-mode .features-list li {
    color: #e5e7eb;
}

body.light-mode .features-list li {
    color: #334155;
}

.features-list i {
    color: #dc2626;
    margin-right: 8px;
}

.modal-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    padding: 22px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    margin-top: 30px;
}

.modal-whatsapp:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -10px #25D366;
}

.modal-whatsapp i {
    font-size: 2.2rem;
    animation: ring 2s infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(8deg); }
    40% { transform: rotate(-8deg); }
    50% { transform: rotate(0); }
}
/* ===== CONTADOR DE FOTOS RESTANTES ===== */
.modal-gallery .gallery-more-counter {
    position: relative;
    width: 100%;
    height: 100px;
    background: linear-gradient(145deg, #2a2a35, #1e1e26);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(220, 38, 38, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: #dc2626;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-gallery .gallery-more-counter:hover {
    transform: scale(1.02);
    border-color: #dc2626;
    background: #dc2626;
    color: white;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* Cuando el contador es la imagen principal */
.modal-gallery .gallery-more-counter.main-counter {
    grid-column: span 4;
    height: 300px;
    font-size: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-gallery .gallery-more-counter {
        height: 80px;
        font-size: 1.5rem;
    }
    
    .modal-gallery .gallery-more-counter.main-counter {
        grid-column: span 2;
        height: 200px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .modal-gallery .gallery-more-counter {
        height: 70px;
        font-size: 1.3rem;
    }
    
    .modal-gallery .gallery-more-counter.main-counter {
        height: 180px;
        font-size: 2rem;
    }
}

/* ===== FOOTER ===== */
footer {
    border-top: 2px solid rgba(220, 38, 38, 0.3);
    padding: 40px 0;
    margin-top: 60px;
    width: 100%;
    animation: fadeIn 1s ease;
}

body.dark-mode footer {
    background: rgba(10, 12, 15, 0.9);
}

body.light-mode footer {
    background: rgba(255, 255, 255, 0.9);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.copyright {
    color: #6b7280;
    transition: color 0.3s ease;
}

.copyright:hover {
    color: #dc2626;
}

.copyright a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #dc2626;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    color: #9ca3af;
}

body.light-mode .socials a {
    color: #64748b;
}

.socials a:hover {
    color: #dc2626;
    transform: translateY(-5px) scale(1.1);
}

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 1200px) {
    .van-card {
        min-height: 430px;
    }
}

@media (max-width: 992px) {
    .van-card {
        min-height: 420px;
    }
    
    .about-section,
    .sell-section {
        padding: 40px 30px;
    }
    
    .sell-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Header responsive */
    .menu-toggle {
        display: flex;
    }
    
    .header-controls {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
        border-top: 1px solid rgba(220, 38, 38, 0.3);
        margin-top: 15px;
    }
    
    .header-controls.show {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .nav-links a {
        text-align: center;
        width: 100%;
    }
    
    .search-box {
        width: 100%;
        min-width: auto;
    }
    
    .logo-img {
        height: 120px !important;
        margin: -30px 0 !important;
    }
    
    /* Grid de tarjetas */
    .vans-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .van-card {
        min-height: 400px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-title {
        font-size: 1.3rem;
        min-height: 3.4rem;
    }
    
    .card-price {
        font-size: 1.8rem;
        min-height: 2.7rem;
    }
    
    /* Filtros */
    .filter-toggle {
        display: flex;
    }
    
    .filter-tags {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .filter-tags.show {
        display: flex;
    }
    
    .filter-chip {
        width: 100%;
        text-align: center;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-select {
        width: 100%;
    }
    
    /* Sobre Nosotros */
    .about-section,
    .sell-section {
        padding: 30px 20px;
    }
    
    .about-text h1,
    .sell-section h2 {
        font-size: 2.2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    
    .stat-number {
        margin-bottom: 0;
        min-width: 100px;
    }
    
    .about-buttons {
        flex-direction: column;
    }
    
    .about-whatsapp,
    .about-email {
        width: 100%;
        min-width: auto;
        white-space: normal;
    }
    
    /* Mapa */
    .about-map {
        padding: 20px;
    }
    
    .about-map h2 {
        font-size: 1.8rem;
    }
    
    .map-container {
        padding-bottom: 60%;
    }
    
    .map-address {
        font-size: 1rem;
        flex-direction: column;
    }
    
    .map-button {
        width: 100%;
    }
    
    /* Vender */
    .sell-features {
        grid-template-columns: 1fr;
    }
    
    .sell-whatsapp {
        width: 100%;
        white-space: normal;
    }
    
    /* Modal */
    .modal-gallery {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 20px 0;
    }
    
    .modal-gallery img.main-img,
    .gallery-video-thumb.main-thumb {
        grid-column: span 2;
        height: 200px;
    }
    
    .modal-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-price {
        font-size: 2.5rem;
    }
    
    /* Visor */
    .image-viewer-main {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .video-viewer-container {
        width: 95vw;
        height: 50vh;
    }
    
    .image-viewer-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .image-viewer-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-video-thumb {
        height: 80px;
    }
    
    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .socials {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 100px !important;
        margin: -25px 0 !important;
    }
    
    .van-card {
        min-height: 380px;
    }
    
    .card-image {
        height: 160px;
    }
    
    .card-title {
        font-size: 1.2rem;
        min-height: 3.1rem;
    }
    
    .card-price {
        font-size: 1.6rem;
        min-height: 2.4rem;
    }
    
    .card-specs {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .about-text h1,
    .sell-section h2 {
        font-size: 2rem;
    }
    
    .about-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-feature i {
        margin-bottom: 10px;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-number {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .about-map h2 {
        font-size: 1.5rem;
    }
    
    .map-container {
        padding-bottom: 75%;
    }
    
    .modal-gallery img.main-img,
    .gallery-video-thumb.main-thumb {
        height: 180px;
    }
    
    .modal-gallery img {
        height: 70px;
    }
    
    .gallery-video-thumb {
        height: 70px;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .modal-price {
        font-size: 2.2rem;
    }
    
    .modal-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-item {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
    }
    
    .spec-item i {
        margin-bottom: 0;
        width: 30px;
    }
    
    .video-viewer-container {
        width: 98vw;
        height: 40vh;
    }
    
    .image-viewer-nav button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .image-viewer-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .image-viewer-counter {
        bottom: 95px;
        font-size: 0.9rem;
        padding: 6px 18px;
    }
    
    .gallery-video-thumb.main-thumb .video-play-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .van-card {
        min-height: 360px;
    }
    
    .card-image {
        height: 150px;
    }
    
    .card-title {
        font-size: 1.1rem;
        min-height: 2.9rem;
    }
    
    .card-price {
        font-size: 1.5rem;
        min-height: 2.2rem;
    }
    
    .card-specs {
        font-size: 0.85rem;
    }
}
/* Botones pequeños de WhatsApp y llamada */
.modal-whatsapp-small,
.modal-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.modal-whatsapp-small {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.modal-whatsapp-small:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px -5px #25D366;
}

.modal-call {
    background: #3b82f6;
    color: white;
}

.modal-call:hover {
    background: #2563eb;
    transform: scale(1.02);
    box-shadow: 0 10px 20px -5px #3b82f6;
}

/* Responsive para móviles */
@media (max-width: 600px) {
    div[style*="grid-template-columnents: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .modal-whatsapp-small,
    .modal-call {
        white-space: normal;
        font-size: 0.9rem;
        padding: 12px;
    }
}
/* ===== BOTONES DE CONTACTO EN GRID ===== */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.contact-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px -5px #25D366;
}

.contact-call {
    background: #3b82f6;
    color: white;
}

.contact-call:hover {
    background: #2563eb;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px -5px #3b82f6;
}

/* Responsive para móviles */
@media (max-width: 600px) {
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .contact-btn {
        white-space: normal;
        font-size: 0.9rem;
        padding: 12px;
    }
}
/* ===== TARJETAS DE CONTACTO MEJORADAS ===== */
.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.contact-card:hover::before {
    width: 500px;
    height: 500px;
}

.contact-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4);
}

/* Estilos específicos para WhatsApp */
.contact-card-wa {
    background: linear-gradient(145deg, #1f2e1f, #1a2a1a);
    border-left: 5px solid #25D366;
}

.contact-card-wa .contact-icon {
    background: #25D366;
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

body.light-mode .contact-card-wa {
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    border-left: 5px solid #25D366;
}

body.light-mode .contact-card-wa .contact-label,
body.light-mode .contact-card-wa .contact-number {
    color: #1a2a1a;
}

/* Estilos específicos para Teléfono */
.contact-card-phone {
    background: linear-gradient(145deg, #1e2630, #151e2a);
    border-left: 5px solid #3b82f6;
}

.contact-card-phone .contact-icon {
    background: #3b82f6;
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

body.light-mode .contact-card-phone {
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    border-left: 5px solid #3b82f6;
}

body.light-mode .contact-card-phone .contact-label,
body.light-mode .contact-card-phone .contact-number {
    color: #0a1a2a;
}

/* Icono de contacto */
.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 2;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Información de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    z-index: 2;
    flex: 1;
}

.contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.contact-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

/* Badge de "Llamar ahora" */
.contact-badge {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 8px;
    border-radius: 30px;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .contact-card {
        padding: 12px 15px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .contact-label {
        font-size: 0.65rem;
    }
    
    .contact-number {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 10px 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .contact-label {
        font-size: 0.6rem;
    }
    
    .contact-number {
        font-size: 0.95rem;
    }
}
/* ===== VISOR TIPO WHATSAPP CON PREVISUALIZACIÓN ===== */
.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.image-viewer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.viewer-main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    margin-bottom: 20px;
}

.image-viewer-main {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid #dc2626;
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.4);
    transition: opacity 0.3s ease;
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.image-viewer-close:hover {
    background: #b91c1c;
    transform: rotate(90deg) scale(1.1);
}

.image-viewer-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    pointer-events: none;
}

.image-viewer-nav button {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.image-viewer-nav button:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

/* ===== PREVISUALIZACIÓN DE IMÁGENES (SCROLL HORIZONTAL) ===== */
.viewer-thumbnails {
    width: 100%;
    max-width: 800px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px 0;
    margin-top: 20px;
    scrollbar-width: thin;
    scrollbar-color: #dc2626 #2a2a35;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.viewer-thumbnails::-webkit-scrollbar {
    display: none;
}

.viewer-thumbnails {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #dc2626;
    opacity: 1;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item.video-thumb {
    position: relative;
}

.thumbnail-item.video-thumb::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(220, 38, 38, 0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .image-viewer-main {
        max-height: 60vh;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .image-viewer-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .image-viewer-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
    
    .image-viewer-counter {
        bottom: 85px;
        font-size: 0.85rem;
        padding: 5px 15px;
    }
}


