/* ==========================================================================
           1. NUEVAS VARIABLES DE COLOR Y SETUP GENERAL
           ========================================================================== */
:root {
    /* Paleta de Colores Corporativa */
    --primary-color: #14304D;
    --accent-color: #B2A170;
    /* Verde Corporativo */
    --bg-white: #FFFFFF;
    --bg-neutral: #F4F6F8;
    /* Fondo grisáceo para secciones/imágenes */
    --text-dark: #333333;
    --text-light: #666666;
    --border-light: #E0E0E0;

    /* Escala de Éxito */
    --success: #16A34A;
    --success-dark: #15803D;
    --success-bg: #F0FDF4;
    --success-border: #BBF7D0;
    --success-border-alpha: rgba(22,163,74,0.2);

    /* Colores de Estado */
    --promo-color: #ffc107;
    --danger-color: #d9534f;

    /* Estilos de UI */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-white);
    /* Fondo general blanco */
    color: var(--text-dark);
    padding-top: 80px;
    /* Espacio para el header fijo */
    margin: 0;
    overflow-x: hidden;
    /* IMPORTANTE: Prevenir scroll horizontal en móvil */
}

/* --- Contenedor Principal --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Estilos de Tipografía --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 15px 0;
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--primary-color);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--accent-color);
    /* Títulos de sección en verde */
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* --- Tarjeta Base --- */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 25px;
    border: 1px solid var(--border-light);
}

/* ==========================================================================
           2. NUEVA NAVEGACIÓN Y HEADER FIJO (MODIFICADA PARA MÓVIL)
           ========================================================================== */
.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.header-logo {
    /* 1. Logo Superior - Escritorio (Altura Máxima) */
    max-height: 90px;
}

/* Reglas de Ocultamiento de Logos */
.header-logo.mobile {
    display: none;
    /* Oculto por defecto en desktop */
}

.header-logo.desktop {
    display: block;
    /* Visible por defecto en desktop */
}

/* FIN Reglas de Ocultamiento de Logos */


.main-nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-speed) ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.contact-item:hover {
    color: var(--accent-color);
}

.contact-item i {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

/* BOTÓN DE HAMBURGUESA (visible solo en móvil) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1010;
}

/* MENÚ LATERAL (Sidebar) */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    /* Ancho en móvil */
    max-width: 300px;
    height: 100%;
    background-color: var(--bg-white);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1005;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-sidebar.open {
    transform: translateX(0);
}

.sidebar-link {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 5px;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s;
}

.sidebar-link:last-child {
    border-bottom: none;
}

.sidebar-link:hover {
    background-color: var(--bg-neutral);
    color: var(--primary-color);
}

/* Overlay para cerrar el menú al tocar fuera */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1004;
}

/* Media Query para móvil (<= 900px) */
@media (max-width: 900px) {
    .header-content {
        justify-content: space-between;
        /* Volvemos al justify-content normal */
        padding: 10px 20px;
    }

    .main-nav,
    .header-contact {
        display: none;
        /* Ocultar menú grande y contactos */
    }

    .menu-toggle {
        display: block;
        /* Mostrar botón de hamburguesa */
    }

    /* LÓGICA DE LOGO SUPERIOR EN MÓVIL */
    .header-logo.desktop {
        display: none;
        /* OCULTAR logo de escritorio */
    }

    .header-logo.mobile {
        display: block;
        /* MOSTRAR logo móvil */
    }

    /* 2. Logo Superior - Móvil (sobrescribe el estilo global) */
    .header-logo {
        max-height: 60px;
        /* EDITA AQUÍ EL TAMAÑO DEL LOGO SUPERIOR EN MÓVIL */
    }

    /* 4. Logo Inferior - Móvil (sobrescribe el estilo global del footer) */
    .footer-content .footer-logo {
        max-height: 60px;
        /* EDITA AQUÍ EL TAMAÑO DEL LOGO INFERIOR EN MÓVIL */
    }
}

/* Fin Media Query Navegación */


/* ==========================================================================
           3. ESTRUCTURA DE "PÁGINAS"
           ========================================================================== */
.page-section {
    display: none;
    /* Ocultas por defecto */
}

.page-section.active {
    display: block;
    /* Mostrada con JS */
}

/* ==========================================================================
           4. SECCIÓN 1: HOMEPAGE (#page-home)
           ========================================================================== */

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-color: #333;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-lg);
    text-align: center;
    color: var(--bg-white);
    margin-bottom: 30px;
    overflow: hidden;
    height: 500px;
}

/* --- Hero Slider --- */
.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* CAMBIO: Capa oscura más opaca para legibilidad */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    /* Más oscuro */
    z-index: 3;
}

/* CAMBIO: Contenido del Hero Restaurado */
.hero-content {
    /* --- CAMBIO: De 'relative' a 'absolute' para superponerlo --- */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* --- FIN DEL CAMBIO --- */
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
}

.hero-content h1 {
    color: var(--bg-white);
    font-size: 3.5rem;
    font-weight: 800;
}

.hero-content p {
    color: var(--bg-white);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

@media (max-width: 600px) {
    .hero-section {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Más pequeño en móvil */
}


/* --- Botón Principal --- */
.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    transition: var(--transition-speed) ease;
}

.btn-primary:hover {
    background: #9A8A5E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Sección Asesores --- */
.team-grid {
    display: flex;
    /* Cambiamos a Flexbox para centrar fácilmente */
    flex-wrap: wrap;
    /* Permite que bajen si no hay espacio */
    justify-content: center;
    /* Centra las tarjetas horizontalmente */
    gap: 25px;
    margin-top: 20px;
}

/* Agregamos una regla para controlar el ancho de las tarjetas en modo Flex */
.team-grid .advisor-card {
    flex: 0 1 350px;
    /* Ancho base ideal de 350px */
    max-width: 100%;
    /* Para que no se salga en celulares pequeños */
}

.advisor-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding: 0;
    overflow: hidden;
    transition: var(--transition-speed) ease;
    border: 1px solid var(--border-light);
}

.advisor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.advisor-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.advisor-info {
    padding: 20px;
}

.advisor-info h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.advisor-info p {
    margin: 0 0 15px 0;
    color: var(--text-light);
    font-weight: 500;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #25D366;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-sizing: border-box;
    transition: var(--transition-speed) ease;
}

.btn-whatsapp:hover {
    background: #1EAE50;
}

/* --- Sección Ubicación --- */
.location-section {
    margin-top: 30px;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.location-info {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    height: 100%;
    box-sizing: border-box;
}

.location-info h3 {
    margin-top: 0;
}

.location-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
           5. SECCIÓN 2: MODELOS (#page-models) - EL SIMULADOR
           ========================================================================== */

/* --- Contenedor del Simulador --- */
.simulator-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0 auto;
}

/* --- Mode Selector --- */
.mode-selector {
    display: flex;
    background-color: var(--bg-neutral);
    /* Fondo gris claro */
    border-radius: var(--border-radius-md);
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.mode-button {
    flex: 1;
    padding: 12px 10px;
    border: none;
    background-color: transparent;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    color: var(--text-light);
}

.mode-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 42, 92, 0.3);
}

/* --- Slider de Promociones --- */
.promo-slider-section {
    background: var(--bg-white);
    /* Fondo blanco */
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    color: var(--text-dark);
    display: none;
    flex-direction: column;
    border: 4px solid var(--accent-color);
    /* Borde Verde Acento */
}

.promo-slider-section h2 {
    color: var(--accent-color);
    /* Título verde */
    text-align: center;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.slider-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: var(--border-radius-md);
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px;
}

.slide-image {
    width: 50%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-neutral);
    /* Fondo gris para imagen */
}

.slide-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slide-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.slide-info .promo-note {
    font-size: 1.1rem;
    font-weight: 400;
    background: var(--bg-neutral);
    /* Fondo gris para la nota */
    color: var(--text-dark);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--promo-color);
}

.slide-info .promo-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--accent-color);
}

/* --- Catalog Section (en #page-models) --- */
.catalog-section {
    background: var(--bg-white);
    /* Fondo blanco */
    padding: 25px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    min-height: 200px;
    border: 1px solid var(--border-light);
}

/* Ocultamos los tabs de concesionarios aquí */
.catalog-section .dealership-tabs,
.catalog-section .dealership-logo {
    display: none;
}

.catalog-section .dealership-header h2 {
    color: var(--accent-color);
    /* Título verde */
}

.motorcycle-grid {
    /* Desktop: 250px min, auto-fill */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Regla específica para móvil: Forzar 2 columnas en la cuadrícula de motos */
@media (max-width: 600px) {
    .motorcycle-grid {
        /* CAMBIO: Usar 2 columnas de forma explícita para asegurar que siempre se vea 2x2 */
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        /* Reducir gap en móvil */
    }

    .moto-card-img-wrapper {
        height: 140px;
        /* Reducir altura de imagen en móvil */
    }

    .moto-card-info {
        padding: 10px;
        /* Reducir padding en móvil */
        gap: 5px;
    }

    .moto-card-info h3 {
        font-size: 0.95rem;
        /* Reducir fuente en móvil */
        line-height: 1.2;
    }

    .moto-card-price {
        font-size: 1rem;
    }

    .moto-card-colors,
    .stock-status {
        font-size: 0.7rem;
    }
}


@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.moto-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-speed) ease;
    background: var(--bg-white);
    /* Fondo blanco para las tarjetas */
    border: 2px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    animation: fadeInCard 0.5s ease-out forwards;
    animation-delay: calc(var(--card-index, 0) * 50ms);
}

.moto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.moto-card.is-promo {
    border-color: var(--promo-color);
}

.moto-card.out-of-stock {
    opacity: 0.7;
}

.promo-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--promo-color);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

.moto-card-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    /* Fondo grisáceo para imágenes */
    background-color: var(--bg-neutral);
}

.moto-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) ease;
}

.moto-card:hover .moto-card-img {
    transform: scale(1.05);
}

.moto-card-info {
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}

/* CAMBIO: Nombre de moto en negrita y oscuro */
.moto-card-info h3 {
    font-size: 1.15rem;
    margin: 0;
    color: var(--text-dark);
    font-weight: 700;
}

.moto-card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.moto-card-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.color-swatch {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.color-swatch-none {
    font-style: italic;
}

.stock-status {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: auto;
    padding-top: 5px;
    border-top: 1px dashed var(--border-light);
}

.stock-status.out-of-stock {
    color: var(--danger-color);
}

/* --- NUEVO ESTILO: Botón de Acción en Tarjeta --- */
.btn-card-action {
    display: block;
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 8px;
    margin-top: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-card-action:hover {
    background-color: #9A8A5E;
}

/* --- Loader --- */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid var(--bg-neutral);
    border-radius: 50%;
    border-top: 8px solid var(--accent-color);
    /* Verde */
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    display: none;
}

.loader.visible {
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Secciones de Resultados y Manual --- */
.results-section {
    padding: 10px;
    display: none;
    scroll-margin-top: 20px;
}

.results-section.show {
    display: block;
}

.results-immediate {
    padding: 20px;
    border: 1px dashed var(--accent-color);
    border-radius: var(--border-radius-md);
    background-color: #f7fffd;
}

.results-immediate h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* Título verde */
.result-summary {
    font-size: 1.2rem;
    background-color: #e6f7ff;
    padding: 15px;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}

.result-summary strong {
    font-weight: 600;
    color: var(--primary-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th,
td {
    border: 1px solid #d4e9e2;
    padding: 12px;
    text-align: center;
    font-size: 0.95rem;
}

th {
    background-color: #d4e9e2;
    font-weight: 600;
    color: var(--primary-color);
}

.charges-section {
    margin-top: 20px;
}

.charges-section h3 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.charges-section ul {
    list-style: none;
    padding: 0;
}

.charges-section li {
    background-color: #fff9c4;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #fbc02d;
}

.sam-result-card {
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    border-left: 7px solid var(--accent-color);
}

.sam-result-card h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--accent-color);
}

/* Título verde */
.sam-main-info {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.info-block {
    flex: 1;
    min-width: 150px;
}

.info-block .label {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.info-block .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.info-block .date {
    font-size: 1.1rem;
    font-weight: 500;
}

.sam-charges {
    margin-top: 20px;
}

.sam-charges h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.sam-charges ul {
    list-style: none;
    padding: 0;
}

.sam-charges li {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.charge-name {
    font-weight: 500;
}

.charge-amount {
    font-weight: 600;
    color: var(--accent-color);
}

.charge-note {
    font-size: 0.85em;
    color: var(--text-light);
    display: block;
}

.manual-price-section {
    background: var(--bg-neutral);
    /* Fondo gris claro */
    padding: 25px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.manual-price-section h2 {
    color: var(--accent-color);
}

/* Título verde */
.manual-inputs-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.manual-mode-inputs {
    display: none;
}

.manual-mode-inputs.active {
    display: block;
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
    flex: 1;
    min-width: 250px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    background: var(--bg-white);
    /* Fondo blanco para inputs */
}

/* --- Botón de Simulación General --- */
.btn-simulate {
    width: auto;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    background: var(--accent-color);
    /* Nuevo Color */
    color: white;
    box-shadow: 0 4px 10px rgba(0, 42, 92, 0.3);
}

.btn-simulate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 42, 92, 0.4);
}

#manualCalculateButton {
    /* Aplicar estilo general */
    width: auto;
    padding: 12px 40px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 42, 92, 0.3);
}

#manualCalculateButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 42, 92, 0.4);
}

.info-section {
    margin-top: 15px;
}

.nota {
    font-size: 0.9em;
    text-align: justify;
    padding: 20px;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-neutral);
    /* Fondo gris claro */
    box-shadow: var(--shadow-sm);
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    /* CAMBIO: Reducir margen superior en móvil para que quepa todo */
    margin: 4% auto;
    padding: 20px;
    /* Reducir padding */
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius-md);
    text-align: center;
    position: relative;
    animation: slideIn 0.4s;
    /* Permitir scroll del modal content si es necesario, pero intentamos evitarlo */
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
}

.modal-moto-image {
    width: 100%;
    max-height: 180px;
    /* Reducir altura de la imagen en el modal */
    object-fit: contain;
    border-radius: var(--border-radius-md);
    margin-bottom: 10px;
    /* Reducir margen */
    background: var(--bg-neutral);
}

.modal-promo-note {
    background-color: var(--promo-color);
    color: var(--text-dark);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    margin: 15px 0;
    display: none;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
    margin: 15px 0;
    padding: 10px;
    background: var(--bg-neutral);
    border-radius: 8px;
}

.detail-item .detail-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.detail-item .detail-value {
    font-size: 1rem;
    font-weight: 600;
}

#modalMotoStock.out-of-stock {
    color: var(--danger-color);
}

#modalMotoColors .color-swatch {
    font-size: 0.8rem;
}

/* CAMBIO: Contenedores para inputs del Modal */
.modal-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px auto;
    max-width: 300px;
}

#modal-sam-inputs {
    display: none;
}

#modal-immediate-inputs {
    display: none;
}

/* Oculto por defecto, se muestra con JS */

.modal-moto-price-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 10px 0 15px 0;
}

.modal-moto-price-label .price-label {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 5px;
}

@media (max-width: 600px) {
    .simulator-container {
        padding: 0;
    }

    .modal-details-grid {
        grid-template-columns: 1fr;
    }

    .slide {
        flex-direction: column;
        text-align: center;
    }

    .slide-image,
    .slide-info {
        width: 100%;
    }

    .slide-image {
        height: 200px;
    }
}

/* ==========================================================================
           6. SECCIÓN 3: CONCESIONARIOS
           ========================================================================== */

.dealership-browser {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    transition: grid-template-columns 0.4s ease;
}

.dealership-browser.dealership-selected {
    grid-template-columns: 300px 1fr;
}

.dealership-sidebar {
    position: relative;
    top: 0;
    align-self: start;
    transition: all 0.4s ease;
}

.dealership-browser.dealership-selected .dealership-sidebar {
    position: sticky;
    top: 100px;
}

.dealership-sidebar h2 {
    color: var(--accent-color);
}

.dealership-list {
    display: grid;
    /* Grid por defecto */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    background: var(--bg-neutral);
    padding: 15px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    max-height: none;
    overflow-y: hidden;
    transition: all 0.4s ease;
}

/* Estilo de lista cuando se selecciona */
.dealership-browser.dealership-selected .dealership-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 70vh;
    overflow-y: auto;
}

/* CAMBIO: Mini-Sidebar/Selector Rápido para Móvil (Oculta la lista) */
.dealership-selector-quick {
    display: none;
    /* Oculto por defecto */
    background: var(--accent-color);
    color: white;
    padding: 15px;
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: background 0.2s ease;
}

.dealership-selector-quick:hover {
    background: #9A8A5E;
}

/* Ocultar el contenido cuando la lista está abierta en móvil */
.dealership-browser.list-open-mobile .dealership-content {
    display: none;
}

.dealership-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 150px;
    border-radius: 8px;
    /* --- CAMBIO: Estilo Neumórfico (Botón) --- */
    border: none;
    background: linear-gradient(145deg, #ffffff, #e6e9eb);
    box-shadow: 5px 5px 10px #dce0e2,
        -5px -5px 10px #ffffff;
    /* --- FIN CAMBIO --- */
    cursor: pointer;
    transition: var(--transition-speed) ease;
    position: relative;
    /* Para superponer logo/texto */
    overflow: hidden;
    /* Para transiciones */
}

/* Estilo de item de lista cuando se selecciona (Sidebar) */
.dealership-browser.dealership-selected .dealership-logo-item {
    flex-direction: row;
    height: auto;
    padding: 10px 15px;
    justify-content: flex-start;
    /* --- CAMBIO: Resetear estilo de botón --- */
    background: var(--bg-white);
    box-shadow: none;
    border: 2px solid transparent;
    /* --- FIN CAMBIO --- */
}

/* --- CAMBIO: Efecto Hover y Presionado para Botones --- */
.dealership-logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 7px 7px 14px #dce0e2,
        -7px -7px 14px #ffffff;
}

.dealership-logo-item.active {
    background: #e6f7ff;
    /* Estilo presionado */
    box-shadow: inset 4px 4px 8px #c4c7c9,
        inset -4px -4px 8px #ffffff;
    border-color: var(--primary-color);
    transform: translateY(0);
}

/* --- FIN CAMBIO --- */

/* Estilo de item de lista (Sidebar) cuando está activo o hover */
.dealership-browser.dealership-selected .dealership-logo-item:hover {
    background: #f0f0f0;
    transform: none;
    box-shadow: none;
    /* Quitar sombra */
}

.dealership-browser.dealership-selected .dealership-logo-item.active {
    background: #e6f7ff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    /* Sombra suave normal */
}


.dealership-logo-item img {
    /* --- CAMBIO: Oculto por defecto en modo Botón --- */
    opacity: 0;
    position: absolute;
    height: 80px;
    max-width: 180px;
    object-fit: contain;
    transition: opacity 0.2s ease-in-out;
    /* --- FIN CAMBIO --- */
    margin-right: 0;
    margin-bottom: 15px;
}

/* --- CAMBIO: Mostrar logo en Hover (Botón) --- */
.dealership-logo-item:hover img {
    opacity: 1;
}

/* --- FIN CAMBIO --- */

/* Estilo de logo en modo lista (Sidebar) */
.dealership-browser.dealership-selected .dealership-logo-item img {
    opacity: 1;
    /* Siempre visible */
    position: static;
    /* Flujo normal */
    height: 40px;
    max-width: 130px;
    margin-right: 15px;
    margin-bottom: 0;
}

.dealership-logo-item span {
    /* --- CAMBIO: Transición para ocultar en Hover (Botón) --- */
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
    /* --- FIN CAMBIO --- */
    font-weight: 800;
    /* Extra-Bold */
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
    /* MAYÚSCULAS */
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* --- CAMBIO: Ocultar texto en Hover (Botón) --- */
.dealership-logo-item:hover span {
    opacity: 0;
}

/* --- FIN CAMBIO --- */

/* Estilo de texto en modo lista (Sidebar) */
.dealership-browser.dealership-selected .dealership-logo-item span {
    opacity: 1;
    /* Siempre visible */
    text-align: left;
    /* --- CAMBIO: Texto más pequeño y normal --- */
    text-transform: none;
    font-size: 0.95rem;
    font-weight: 600;
    /* --- FIN CAMBIO --- */
}

/* No ocultar texto en hover en modo lista */
.dealership-browser.dealership-selected .dealership-logo-item:hover span {
    opacity: 1;
}

.dealership-content {
    /* CAMBIO: ELIMINAR min-height: 100vh para arreglar el footer */
    display: none;
    position: relative;
    /* Para posicionar el selector rápido en móvil */
}

/* Mostrar contenido cuando se selecciona */
.dealership-browser.dealership-selected .dealership-content {
    display: block;
}

#dealership-moto-grid-title {
    margin-bottom: 20px;
    color: var(--accent-color);
    /* Título verde */
}

#page-dealerships .loader {
    display: none;
}

@media (max-width: 900px) {
    .dealership-browser {
        grid-template-columns: 1fr;
    }

    .dealership-browser.dealership-selected {
        grid-template-columns: 1fr;
    }

    .dealership-sidebar {
        position: static;
        top: auto;
        max-height: none;
        /* Dejar que el contenido fluya */
    }

    .dealership-browser.dealership-selected .dealership-sidebar {
        position: static;
        /* CAMBIO: Ocultar el sidebar si un conce está seleccionado */
        display: none;
        max-height: none;
    }

    /* Mostrar el sidebar cuando se fuerza la apertura en móvil */
    .dealership-browser.list-open-mobile .dealership-sidebar {
        display: block;
        max-height: 50vh;
        /* Limitar altura para scroll vertical */
        overflow-y: auto;
        margin-bottom: 20px;
    }

    /* Mostrar el selector rápido */
    .dealership-selector-quick {
        display: block;
    }

    .dealership-browser.list-open-mobile .dealership-selector-quick {
        display: none;
        /* Ocultar si la lista está abierta */
    }

    .dealership-list {
        /* --- Volver a Grid en móvil --- */
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        overflow-x: hidden;
        overflow-y: hidden;
        /* --- FIN CAMBIO --- */
    }

    .dealership-browser.dealership-selected .dealership-list {
        /* Mantiene el modo de lista, pero oculto por el estilo superior. */
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        max-height: none;
        overflow: hidden;
    }

    .dealership-logo-item {
        flex-direction: column;
        min-width: 150px;
        height: 150px;
    }

    .dealership-logo-item img {
        margin-right: 0;
        margin-bottom: 10px;
        height: 60px;
        max-width: 130px;
    }

    .dealership-browser.dealership-selected .dealership-logo-item {
        flex-direction: column;
        min-width: 150px;
        height: 150px;
        /* --- CAMBIO: Resetear estilo de botón --- */
        background: var(--bg-white);
        box-shadow: none;
        border: 2px solid transparent;
        /* --- FIN CAMBIO --- */
    }

    .dealership-browser.dealership-selected .dealership-logo-item img {
        opacity: 1;
        /* Siempre visible */
        position: static;
        /* Flujo normal */
        margin-right: 0;
        margin-bottom: 10px;
        height: 60px;
        max-width: 130px;
    }

    .dealership-logo-item span {
        font-size: 0.9rem;
    }

    .dealership-browser.dealership-selected .dealership-logo-item span {
        /* --- CAMBIO: Aplicar estilo de lista también en móvil --- */
        opacity: 1;
        text-align: center;
        text-transform: none;
        font-size: 0.9rem;
        font-weight: 600;
        /* --- FIN CAMBIO --- */
    }

    .dealership-logo-item:hover span {
        opacity: 0;
        /* Ocultar texto en hover (Modo Botón) */
    }

    .dealership-browser.dealership-selected .dealership-logo-item:hover span {
        opacity: 1;
        /* No ocultar texto en hover (Modo Lista) */
    }

    .dealership-content {
        display: block;
        /* CAMBIO: Asegurar que se muestre en móvil si se selecciona */
    }
}

/* ==========================================================================
           7. FOOTER GLOBAL
           ========================================================================== */

.main-footer {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 40px 20px;
    /* CORRECCIÓN: Eliminar margin-top: 50px ya que es el que causa el bug */
    /* Se añade un padding-bottom a la página para evitar que el footer toque el contenido */
    margin-top: 0;
}

/* CAMBIO: Añadir un margen al final de la página para que el footer no se pegue al contenido */
#page-dealerships {
    margin-bottom: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    /* 3. Logo Inferior - Escritorio (Altura Máxima) */
    max-height: 80px;
    /* CAMBIO: Se aplican filtros CSS para hacer el logo blanco */
    filter: brightness(0) invert(1) grayscale(100%);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: var(--bg-white);
    text-decoration: none;
}

.footer-socials i {
    width: 24px;
    height: 24px;
    transition: var(--transition-speed) ease;
}

.footer-socials a:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.footer-content p {
    color: var(--bg-white);
    opacity: 0.8;
    margin: 0;
    font-size: 1.2rem;
}

/* ==========================================================================
           8. ESTILOS CALCULADORA CELULARES (DISEÑO PREMIUM)
           ========================================================================== */

#page-celulares,
#page-celulares * {
    font-family: 'Poppins', sans-serif;
}

/* --- HERO DARK TECH --- */
.cel-hero-dark {
    background-color: #0f172a;
    background-image: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
    padding: 80px 0 100px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
    animation: pulseGlow 8s infinite alternate;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: #0284c7;
    bottom: -50px;
    left: -50px;
    animation: pulseGlow 10s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

.cel-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.tech-badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.cel-hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    /* Forzando tipografía nueva */
}

.gradient-text {
    background: linear-gradient(135deg, #D9CA9D 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cel-hero-text p {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 25px;
    line-height: 1.7;
    max-width: 90%;
}

.brands-wrapper {
    margin-bottom: 35px;
}

.brands-title {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brands-title i {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

.brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    align-items: center;
}

.brands-list span {
    color: #e2e8f0;
    font-size: 1.05rem;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.brands-list span:not(:last-child)::after {
    content: "•";
    color: var(--primary-color);
    margin-left: 15px;
    font-weight: bold;
}

.btn-glow-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-color);
    color: #fff;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(20, 48, 77, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-glow-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-glow-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(20, 48, 77, 0.5);
}

.btn-glow-primary:hover::after {
    left: 100%;
}

.cel-hero-image img {
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    display: block;
    margin: 0 auto;
}

.floating-phone-3d {
    animation: float3D 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes float3D {
    0% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-20px) rotateX(5deg) rotateY(-5deg);
    }

    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
}

/* --- WIDGET CALCULADORA --- */
.tech-simulator-glass {
    max-width: 850px;
    margin: -120px auto 50px;
    position: relative;
    z-index: 10;
}

.calculator-widget {
    background: #ffffff;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.widget-header {
    text-align: center;
    margin-bottom: 40px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(20, 48, 77, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.icon-circle i {
    width: 30px;
    height: 30px;
}

.widget-header h2 {
    font-size: 2.4rem;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.widget-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.input-wrapper-interactive label {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1rem;
}

.input-glass-effect {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
}

.input-glass-effect .currency-symbol {
    position: absolute;
    left: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.input-glass-effect input {
    width: 100%;
    padding: 20px 20px 20px 50px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    border: 2px solid transparent;
    background: transparent;
    transition: 0.3s;
    outline: none;
    z-index: 2;
}

.input-focus-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.input-glass-effect input:focus~.input-focus-border {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(20, 48, 77, 0.15);
}

.btn-calculate-pulse {
    width: 100%;
    padding: 20px;
    margin-top: 30px;
    background: var(--text-dark);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-calculate-pulse:hover {
    background: var(--accent-color);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 30px rgba(20, 48, 77, 0.3);
}

.error-toast-shake {
    background: #fff0f0;
    color: #dc2626;
    padding: 16px;
    border-radius: 12px;
    border-left: 5px solid #dc2626;
    margin-top: 25px;
    font-weight: 600;
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.results-animated-reveal {
    margin-top: 40px;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.initial-payment-card-premium {
    background: linear-gradient(135deg, var(--success-bg) 0%, var(--success-border) 100%);
    border: 1px solid var(--success-border);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(20, 48, 77, 0.05);
    display: block;
}

.icon-box-green {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.initial-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--success-dark);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

#initial-payment-result {
    width: 100%;
}

.custom-initial-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 40px;
    border: 1px dashed #cbd5e1;
}

.custom-initial-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.small-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.small-input input {
    padding: 15px 15px 15px 45px;
    font-size: 1.1rem;
}

.finance-summary-card {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.finance-summary-card.highlight {
    border-color: var(--primary-color);
    background: var(--success-bg);
    transform: scale(1.02);
}

.summary-label {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    transition: color 0.3s ease;
}

.plans-divider {
    text-align: center;
    position: relative;
    margin-bottom: 30px;
}

.plans-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.plans-divider span {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 0 20px;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.interactive-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    perspective: 1000px;
}

.plan-card-3d {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 20px;
    padding: 0;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.plan-card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.plan-header {
    background: #f8fafc;
    padding: 15px;
    border-radius: 18px 18px 0 0;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.plan-header i {
    width: 16px;
    height: 16px;
}

.plan-body {
    padding: 30px 20px;
}

.plan-body h3 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0 0 10px;
    border: none;
    padding: 0;
}

.plan-body p {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 5px;
    transition: all 0.3s ease;
}

.plan-body span {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
}

.flash-update p {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

.popular-plan-3d {
    border-color: var(--primary-color);
    transform: scale(1.08);
    z-index: 2;
    box-shadow: 0 15px 35px rgba(20, 48, 77, 0.15);
}

.popular-plan-3d:hover {
    transform: scale(1.08) translateY(-10px) rotateX(5deg);
    box-shadow: 0 25px 45px rgba(20, 48, 77, 0.25);
    border-color: var(--primary-color);
}

.popular-plan-3d .plan-header {
    background: rgba(20, 48, 77, 0.05);
    color: var(--primary-color);
    border-bottom-color: rgba(20, 48, 77, 0.1);
}

.popular-ribbon {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
    z-index: 5;
}

.popular-ribbon i {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

@media (max-width: 900px) {
    .cel-hero-dark {
        padding: 60px 0 80px;
        text-align: center;
        border-radius: 0 0 30px 30px;
    }

    .cel-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cel-hero-text h1 {
        font-size: 2.5rem;
    }

    .cel-hero-text p {
        margin: 0 auto 20px;
    }

    .brands-list {
        justify-content: center;
    }

    .brands-title {
        justify-content: center;
    }

    .tech-simulator-glass {
        margin-top: -60px;
        padding: 0 15px;
    }

    .calculator-widget {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .widget-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .interactive-plans-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 15px;
    }

    .popular-plan-3d {
        transform: scale(1);
    }

    .popular-plan-3d:hover {
        transform: translateY(-5px);
    }
}

/* El .hero-content (z-index 4) global se superpondrá y centrará el texto */

/* ==========================================================================
           10. NUEVOS ESTILOS PARA CALCULADORA DE CONCESIONARIOS
           ========================================================================== */
.dealership-calculator-container {
    width: 100%;
    max-width: 900px;
    margin: 20px 0 0 0;
    /* Margen superior para separarse del grid */
    padding: 25px;
    background: var(--bg-neutral);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    display: none;
    /* Oculto por defecto, se muestra cuando se selecciona un conce */
}

.dealership-calculator-container h2 {
    text-align: center;
    margin-bottom: 15px;
}

.dealership-calculator-container .input-group {
    text-align: left;
    margin-bottom: 15px;
    flex: 1;
    min-width: 250px;
}

/* <-- ¡Esta llave cierra correctamente el grupo anterior! */
/* ==========================================================================
           12. ESTILOS DEL BUSCADOR POR PRESUPUESTO DE INICIAL (PREMIUM)
           ========================================================================== */
.budget-filter-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.budget-filter-header {
    text-align: center;
    margin-bottom: 30px;
}

.budget-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(20, 48, 77, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.budget-icon-circle i {
    width: 30px;
    height: 30px;
}

.budget-filter-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.budget-filter-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.budget-filter-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.budget-input-wrapper-premium {
    width: 100%;
}

.budget-input-wrapper-premium label {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1rem;
    text-align: left;
}

.budget-action-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    flex-direction: column;
}

.budget-action-buttons .btn-calculate-pulse {
    margin-top: 10px;
}

.budget-action-buttons .btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.budget-action-buttons .btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.budget-results-toast {
    margin-top: 30px;
    padding: 20px;
    border-radius: 16px;
    font-size: 1.1rem;
    text-align: center;
    animation: slideUpFade 0.5s ease forwards;
}

@media (max-width: 600px) {
    .budget-filter-card {
        padding: 25px 20px;
    }

    .budget-filter-header h2 {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   11. ESTILOS TOGGLE MODALIDAD CELULARES (Con/Sin Inicial)
   ========================================================================== */

.cel-mode-toggle-wrapper {
    margin-bottom: 35px;
}

.cel-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f5f9;
    border-radius: 18px;
    padding: 6px;
    gap: 6px;
    margin-bottom: 15px;
}

.cel-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 10px;
    border: none;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.cel-mode-btn i {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.cel-mode-btn .btn-label {
    font-size: 1rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.cel-mode-btn .btn-sublabel {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.7;
    display: block;
}

.cel-mode-btn.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cel-mode-btn.active i {
    transform: scale(1.15);
}

/* Botón Sin Inicial activo con acento especial */
#btn-sin-inicial.active {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #D9CA9D;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

#btn-sin-inicial.active .btn-sublabel {
    color: #D9CA9D;
    opacity: 1;
}

/* Badge informativo Sin Inicial */
.sin-inicial-promo-badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #D9CA9D;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
    animation: slideUpFade 0.4s ease forwards;
}

.sin-inicial-promo-badge i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Tarjetas de plan semanal (modo Sin Inicial) */
.plans-weekly-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

/* En modo sin-inicial, el plan popular cambia de acento */
.sin-inicial-mode .popular-plan-3d {
    border-color: #0f172a;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.sin-inicial-mode .popular-plan-3d .plan-header {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

.sin-inicial-mode .popular-ribbon {
    background: linear-gradient(90deg, #0f172a, #1e293b);
}

/* Tarjeta de resumen "Paga el día de entrega" */
.entrega-summary-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entrega-summary-card .entrega-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
}

.entrega-summary-card .entrega-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #cbd5e1;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.entrega-summary-card .entrega-row:last-child {
    border-bottom: none;
}

.entrega-summary-card .entrega-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.entrega-summary-card .entrega-total-label {
    font-size: 1rem;
    font-weight: 700;
    color: #D9CA9D;
}

.entrega-summary-card .entrega-total-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #D9CA9D;
}

@media (max-width: 600px) {
    .cel-mode-btn {
        padding: 14px 8px;
    }

    .cel-mode-btn .btn-label {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
           11. CLASES DE UTILIDAD Y ESTADOS
           ========================================================================== */
.hidden {
    display: none !important;
}

/* ==========================================================================
   CATÁLOGO PÚBLICO ZONA ANDROID — Agregar al final de main.css
   Sección: #page-celulares → .cel-catalog-section
   ========================================================================== */

/* ── Sección principal ─────────────────────────────────────────────────────── */
.cel-catalog-section {
    padding: 60px 0 20px 0;
    background: #fff;
}

/* ── Encabezado ────────────────────────────────────────────────────────────── */
.cel-catalog-header {
    text-align: center;
    margin-bottom: 36px;
}

.cel-catalog-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20,48,77,0.06);
    color: #14304D;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(20, 48, 77, 0.2);
    margin-bottom: 14px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #14304D;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.cel-catalog-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.cel-catalog-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Toolbar de filtros ────────────────────────────────────────────────────── */
.cel-catalog-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cel-search-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.cel-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.cel-search-input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
}

.cel-search-input:focus {
    outline: none;
    border-color: #14304D;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(20, 48, 77, 0.1);
}

.cel-search-input::placeholder {
    color: #94a3b8;
}

.cel-filters-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cel-filter-select {
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.cel-filter-select:focus {
    outline: none;
    border-color: #14304D;
    box-shadow: 0 0 0 3px rgba(20, 48, 77, 0.1);
}

/* ── Contador resultados ───────────────────────────────────────────────────── */
.cel-results-info {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
    min-height: 20px;
}

/* ── Grid de tarjetas ─────────────────────────────────────────────────────── */
.cel-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    min-height: 200px;
}

/* ── Loading ───────────────────────────────────────────────────────────────── */
.cel-catalog-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 24px;
    color: #94a3b8;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.cel-loading-dots {
    display: flex;
    gap: 8px;
}

.cel-loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #14304D;
    animation: celBounce 1.2s infinite;
}

.cel-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.cel-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes celBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Estado vacío ──────────────────────────────────────────────────────────── */
.cel-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.cel-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.cel-empty-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 8px 0;
}

.cel-empty-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    max-width: 340px;
}

/* ══════════════════════════════════════════════════════════════
   TARJETA DE CELULAR
══════════════════════════════════════════════════════════════ */
.cel-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: celCardFadeIn 0.4s ease both;
    animation-delay: calc(var(--card-index, 0) * 60ms);
}

@keyframes celCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cel-card:hover {
    border-color: #14304D;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(20, 48, 77, 0.12);
}

/* Imagen */
.cel-card-img-wrap {
    position: relative;
    height: 200px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cel-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s ease;
}

.cel-card:hover .cel-card-img {
    transform: scale(1.04);
}

.cel-card-promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Body */
.cel-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.cel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cel-card-marca {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #14304D;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cel-card-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
}

.cel-card-stock.disponible {
    background: var(--success-bg);
    color: #14304D;
}

.cel-card-stock.agotado {
    background: #fef2f2;
    color: #ef4444;
}

.cel-card-stock .stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.cel-card-modelo {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.cel-card-specs {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
}

.cel-card-colores {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cel-card-color-chip {
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

.cel-card-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Precio */
.cel-card-precio-wrap {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.cel-card-precio {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

.cel-card-inicial {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #64748b;
}

.cel-card-inicial strong {
    color: #14304D;
}

/* Acciones */
.cel-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-cel-calcular {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    background: rgba(20,48,77,0.06);
    border: 1.5px solid #14304D;
    border-radius: 8px;
    color: #14304D;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-cel-calcular:hover:not(:disabled) {
    background: #14304D;
    color: #fff;
}

.btn-cel-solicitar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: #B2A170;
    border: 1.5px solid #B2A170;
    border-radius: 8px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-cel-solicitar:hover:not(:disabled) {
    background: #9A8A5E;
    border-color: #9A8A5E;
    transform: translateX(2px);
}

.btn-cel-calcular:disabled,
.btn-cel-solicitar:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Divisor hacia la calculadora ─────────────────────────────────────────── */
.cel-catalog-divider {
    text-align: center;
    padding: 32px 0 0 0;
}

.cel-catalog-divider-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
}

.cel-catalog-divider-inner svg {
    color: #14304D;
    animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

/* ── Toast de confirmación ─────────────────────────────────────────────────── */
.cel-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
    border-left: 3px solid #14304D;
}

.cel-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .cel-catalog-section {
        padding: 40px 0 16px 0;
    }

    .cel-catalog-title {
        font-size: 1.5rem;
    }

    .cel-catalog-toolbar {
        flex-direction: column;
    }

    .cel-filters-wrap {
        width: 100%;
    }

    .cel-filter-select {
        flex: 1;
    }

    .cel-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cel-card-img-wrap {
        height: 160px;
    }

    .cel-card-actions {
        flex-direction: column;
    }

    .btn-cel-calcular,
    .btn-cel-solicitar {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cel-catalog-grid {
        grid-template-columns: 1fr;
    }

    .cel-card-actions {
        flex-direction: row;
    }
}

/* ── PROMO ESPECIAL — sitio público ────────────────────────────── */
.promo-tag-especial {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.promo-nota-especial {
    font-size: 0.75rem;
    color: #b45309;
    font-style: italic;
    margin-top: 4px;
    padding: 4px 8px;
    background: #fffbeb;
    border-radius: 6px;
    border: 1px solid #fde68a;
}

.pe-modal-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.88rem;
    margin-top: 6px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    text-align: left;
}

.pe-modal-nota {
    font-size: 0.78rem;
    color: #92400e;
    margin-top: 4px;
}

.pe-results-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

.pe-results-card h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
}

.pe-result-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #fde68a;
    font-size: 0.88rem;
}

.pe-result-row:last-child {
    border-bottom: none;
}

.pe-result-highlight {
    background: #fef3c7;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    margin: 4px 0;
}

.pe-result-highlight strong {
    color: #b45309;
    font-size: 1.1rem;
}