/* ==========================================================================
   RESET & VARIABLES GLOBALES
   ========================================================================== */
:root {
    --azul-simmons: #002D62;
    --azul-oscuro: #0a192f;
    --dorado-premium: #C5A059;
    --dorado-claro: #fcf8f2;
    --texto-oscuro: #333333;
    --texto-mutado: #666666;
    --fondo-gris: #f8f9fa;
    --blanco: #ffffff;
    --whatsapp-green: #25D366;
    --fuente-principal: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    color: var(--texto-oscuro);
    background-color: var(--blanco);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
    margin-right: auto;
    margin-left: auto;
}

/* ==========================================================================
   HEADER (Mobile-First)
   ========================================================================== */
.main-header {
    background-color: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-simmons {
    height: 32px; /* Control de tamaño en mobile */
    width: auto;
}

.logo-descanso {
    height: 24px;
    width: auto;
    border-left: 1px solid #ccc;
    padding-left: 15px;
}

.btn-header-map {
    background-color: var(--fondo-gris);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--azul-simmons);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   HERO SECTION (Mobile-First)
   ========================================================================== */
.hero {
    position: relative;
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    padding: 40px 0;
    text-align: center;
    overflow: hidden;
}

/* ==========================================================================
   ACTUALIZACIÓN HERO: CARRUSEL PREMIUM
   ========================================================================== */
.hero-image-wrapper {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.3);
    position: relative;
}

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Desplazamiento suave y premium */
}

.slide {
    min-width: 100%;
    width: 100%;
}

.slide img {
    width: 100%;
    height: 250px; /* Altura perfecta controlada para pantallas de celular */
    object-fit: cover;
}

/* Indicadores inferiores (Puntitos) */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--dorado-premium);
    width: 24px; /* Efecto de píldora estirada para el activo */
    border-radius: 5px;
}

/* Ajustes para Computadora/Tablets */
@media (min-width: 768px) {
    .slide img {
        height: 380px; /* Le damos más altura en pantallas grandes */
    }
}

.hero-content h1 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: var(--dorado-premium);
}

.direccion-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.direccion-badge strong {
    display: block;
    color: var(--dorado-premium);
    margin-bottom: 3px;
}

.btn-hero-cta {
    display: inline-block;
    background-color: var(--dorado-premium);
    color: var(--blanco);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
    width: 100%; /* Botón completo en mobile para fácil clic */
}

/* ==========================================================================
   PROMOS SECTION (Mobile-First)
   ========================================================================== */
.promos-section {
    padding: 30px 0;
    background-color: var(--fondo-gris);
}

.promos-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.promo-card {
    background-color: var(--blanco);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-left: 4px solid var(--azul-simmons);
}

.promo-card.promo-contado {
    border-left-color: var(--dorado-premium);
    background-color: var(--dorado-claro);
}

.promo-icono {
    font-size: 2rem;
}

.promo-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 2px;
}

.promo-info p {
    font-size: 0.85rem;
    color: var(--texto-mutado);
}

/* ==========================================================================
   MEDIA QUERIES (Escritorio / Tablets)
   ========================================================================== */
@media (min-width: 768px) {
    .container { max-width: 1200px; }
    
    .logo-simmons { height: 40px; }
    .logo-descanso { height: 30px; }
    
    .hero {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 60px 0;
    }
    
    .hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }
    
    .hero-image-wrapper { margin-bottom: 0; order: 2; }
    .hero-content { order: 1; }
    .hero-content h1 { font-size: 2.4rem; }
    .btn-hero-cta { width: auto; }
    
    .promos-grid {
        flex-direction: row;
        grid-template-columns: 1fr 1fr;
    }
    .promo-card { flex: 1; }
}

/* ==========================================================================
   CATÁLOGO SURTIDO (Fase 2)
   ========================================================================== */
.catalog-section {
    padding: 50px 0;
    background-color: var(--blanco);
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--azul-simmons);
    font-weight: 700;
}

.section-title p {
    color: var(--texto-mutated);
    font-size: 0.95rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna en celular */
    gap: 25px;
}

.catalog-card {
    background: var(--blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
}

.card-image-container {
    position: relative;
}

.card-image-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--azul-simmons);
    color: var(--blanco);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--azul-oscuro);
}

.card-body p {
    font-size: 0.9rem;
    color: var(--texto-mutado);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-card-wa {
    background-color: var(--whatsapp-green);
    color: var(--blanco);
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
    transition: background 0.3s ease;
}

/* ==========================================================================
   QUIZ INTERACTIVO (Fase 2)
   ========================================================================== */
.quiz-section {
    padding: 50px 0;
    background-color: var(--azul-oscuro);
    color: var(--blanco);
}

.quiz-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-header h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-align: center;
}

.quiz-header p {
    font-size: 0.85rem;
    color: #b0c4de;
    text-align: center;
    margin-bottom: 20px;
}

.progress-bar {
    background: rgba(255,255,255,0.1);
    height: 6px;
    border-radius: 3px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress {
    background: var(--dorado-premium);
    height: 100%;
    width: 25%; /* Cambia dinámicamente con JS */
    transition: width 0.3s ease;
}

.quiz-step {
    display: none; /* Ocultos por defecto */
}

.quiz-step.active {
    display: block; /* Solo se muestra el activo */
    animation: fadeIn 0.4s ease-in-out;
}

.quiz-step h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-opt-btn {
    background: var(--blanco);
    color: var(--texto-oscuro);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-family: var(--fuente-principal);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-opt-btn:active {
    transform: scale(0.98);
}

.btn-quiz-submit {
    background-color: var(--whatsapp-green);
    color: var(--blanco);
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    font-family: var(--fuente-principal);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive para Pantallas Grandes */
@media (min-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en Escritorio */
    }
    .quiz-container {
        padding: 40px;
    }
}

/* ==========================================================================
   TESTIMONIALS & REVIEWS (Fase 3)
   ========================================================================== */
.testimonials-section {
    padding: 60px 0;
    background-color: var(--fondo-gris);
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-card {
    background-color: var(--blanco);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
}

.stars {
    color: var(--dorado-premium);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.review {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--texto-oscuro);
    margin-bottom: 15px;
    line-height: 1.5;
}

.author {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--azul-simmons);
    display: block;
}

/* ==========================================================================
   LOCATION SECTION (Fase 3)
   ========================================================================== */
.location-section {
    padding: 50px 0;
    background-color: var(--blanco);
}

.location-card {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,45,98,0.15);
}

.geo-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.location-info h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.address {
    font-size: 1rem;
    color: #e0e6ed;
    margin-bottom: 25px;
}

.hours-box {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hours-title {
    font-weight: 700;
    color: var(--dorado-premium);
    margin-bottom: 5px;
}

.btn-maps-cta {
    display: block;
    background-color: var(--blanco);
    color: var(--azul-oscuro);
    padding: 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* ==========================================================================
   FOOTER COORPORATIVO (Fase 3)
   ========================================================================== */
.main-footer {
    background-color: #111111;
    color: #999999;
    padding: 50px 0 90px 0; /* Margen inferior extra preventivo por la barra fija mobile */
    font-size: 0.85rem;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.badge-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.badge-item h4 {
    color: var(--blanco);
    font-size: 1rem;
    margin-bottom: 6px;
}

.badge-item p {
    color: #777777;
    max-width: 280px;
    margin: 0 auto;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #222222;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dev-credits {
    color: #555555;
    font-size: 0.75rem;
}

/* ==========================================================================
   RESPONSIVE LAYOUT DESKTOP
   ========================================================================== */
@media (min-width: 768px) {
    .testimonials-grid {
        flex-direction: row;
    }
    .testimonial-card {
        flex: 1;
    }
    .location-card {
        padding: 50px;
        max-width: 800px;
        margin: 0 auto;
    }
    .trust-badges {
        flex-direction: row;
        justify-content: space-between;
    }
    .badge-item {
        flex: 1;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    .main-footer {
        padding-bottom: 40px; /* En escritorio no hay barra fija inferior molestando */
    }
}

/* ==========================================================================
   BARRA FIJA INFERIOR MOBILE (Fase 4)
   ========================================================================== */
.sticky-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--blanco);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    z-index: 9999;
    padding: 12px 15px;
    gap: 12px;
}

.sticky-btn {
    flex: 1;
    text-align: center;
    padding: 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.sticky-btn:active {
    transform: scale(0.96);
}

.btn-call {
    background-color: var(--fondo-gris);
    color: var(--azul-oscuro);
    border: 1px solid #e0e0e0;
}

.btn-wa {
    background-color: var(--whatsapp-green);
    color: var(--blanco);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Ocultar en tablets y pantallas grandes */
@media (min-width: 768px) {
    .sticky-mobile-bar {
        display: none;
    }
}