/* ===== ARCHIVO RESPONSIVE.CSS ===== */
/* Estilos responsive optimizados para MOBILE únicamente */
/* Desktop: Los estilos están en style.css y clart.css */
/* Breakpoint: 768px (mobile < 768px, desktop >= 768px) */

/* ============================================
   MOBILE STYLES (max-width: 767px)
   ============================================ */

@media (max-width: 767px) {

    /* ===== HERO TITLE Y ELEMENTOS PRINCIPALES ===== */
    .hero-title {
        font-size: 36px;
        letter-spacing: 0.05em;
        line-height: 1.3;
    }

    .slider-description {
        margin-top: 60px;
        margin-left: 20px;
    }

    .slider-description p {
        font-size: 15px;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .slider-description img {
        width: 120px !important;
        margin-bottom: 20px !important;
    }

    /* ===== BOTONES ===== */
    .btn-register,
    .btn-know-more {
        display: block;
        width: 100%;
        min-width: auto;
        min-height: 55px;
        font-size: 16px;
        padding: 12px 20px;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }

    .btn-know-more {
        text-align: center;
    }

    .btn-know-more span {
        font-size: 22px;
    }

    .btn-know-more i {
        position: static;
        transform: none;
        margin-left: 8px;
        margin-top: -36px;
    }

    /* ===== SECCIONES Y TÍTULOS ===== */
    .section-title h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .home-offer-products .section-title h2,
    .home-new-products .section-title h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    /* ===== CONTAINERS Y ESPACIADO ===== */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .pt-md-5 {
        padding-top: 2rem !important;
    }

    .mt-200 {
        margin-top: 15px !important;
    }

    .pb-30 {
        padding-bottom: 20px !important;
    }

    .pr-120 {
        padding-right: 0 !important;
    }

    /* ===== CATEGORÍAS HOME ===== */
    .home-category-container {
        padding: 12px;
        height: 120px;
        margin-bottom: 15px;
    }

    .home-category-container img {
        width: 60px;
        height: 60px;
    }

    .home-category-container .category-name h6 {
        font-size: 12px;
    }

    /* ===== CAROUSEL ===== */
    #offersHomeCarousel .carousel-control-prev {
        left: -5%;
    }

    #offersHomeCarousel .carousel-control-next {
        right: -5%;
    }

    #offersHomeCarousel .carousel-control-prev span,
    #offersHomeCarousel .carousel-control-next span {
        height: 30px;
    }

    /* ===== PRODUCTOS Y CARDS ===== */
    .product-card,
    .single-product {
        margin-bottom: 20px;
    }

    /* ===== TARJETAS DE PRODUCTOS EN OFERTA ===== */
    .offer-product-card {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 6px;
    }

    .product-image-container {
        padding: 10px;
        margin-bottom: 12px;
    }

    .product-image-container img {
        height: 150px;
    }

    .offer-product-card h5 {
        font-size: 12px;
        min-height: 36px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .offer-price {
        margin-bottom: 12px;
    }

    .offer-price .current-price {
        font-size: 16px;
    }

    .offer-price .original-price {
        font-size: 11px;
    }

    .add-cart-btn {
        font-size: 12px;
        padding: 10px 15px;
        min-width: 100%;
        min-height: 40px;
        margin: 0;
    }

    /* Controles del carrusel de productos */
    #homeOfferProductsCarousel .carousel-control-prev,
    #homeNewProductsCarousel .carousel-control-prev {
        left: -5%;
    }

    #homeOfferProductsCarousel .carousel-control-next,
    #homeNewProductsCarousel .carousel-control-next {
        right: -5%;
    }

    #homeOfferProductsCarousel .carousel-control-prev span,
    #homeNewProductsCarousel .carousel-control-prev span,
    #homeOfferProductsCarousel .carousel-control-next span,
    #homeNewProductsCarousel .carousel-control-next span {
        height: 30px;
        width: 30px;
    }

    /* ===== FOOTER ===== */
    .footer-area {
        padding: 30px 0 15px 0;
    }

    .footer-widget {
        margin-bottom: 30px;
    }

    .footer-custom {
        padding: 0 10px;
    }

    /* Logo del footer */
    .footer-logo {
        margin-bottom: 20px;
        text-align: center;
        justify-content: center;
    }

    .footer-logo img {
        max-width: 140px;
        width: auto;
        height: auto;
    }

    /* Navegación del footer */
    .footer-nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .footer-nav-links a {
        font-size: 13px;
        padding: 5px 10px;
        text-decoration: none;
        color: #333;
    }

    /* Iconos sociales */
    .footer-social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .footer-social-icon {
        display: inline-block;
    }

    .footer-social-icon img {
        width: 24px !important;
        height: 24px !important;
        filter: var(--dd-social-orange-filter) !important;
    }

    .footer-social-icon:hover img {
        filter: var(--dd-social-orange-filter-hover) !important;
    }

    /* Métodos de pago */
    .footer-payment-methods {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 25px;
    }

    .footer-payment-logo {
        width: 70px !important;
        height: 60px !important;
        object-fit: contain;
        filter: var(--dd-brand-mono-filter) !important;
    }

    /* Títulos de sección */
    .footer-section-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 15px;
        color: #072A93;
    }

    /* Enlaces del footer */
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 13px;
        color: #666;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-links a:hover {
        color: #072A93;
    }

    /* Información de contacto */
    .footer-contact-info {
        font-size: 13px;
        line-height: 1.6;
        color: #666;
    }

    .footer-contact-info strong {
        font-size: 14px;
        display: block;
        margin-top: 8px;
    }

    /* Espaciado entre columnas en mobile */
    .footer-custom .row>div {
        margin-bottom: 30px;
    }

    .footer-custom .row>div:last-child {
        margin-bottom: 0;
    }

    /* ===== BOTÓN WHATSAPP FLOTANTE - MOBILE ===== */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float a {
        width: 55px;
        height: 55px;
    }

    .whatsapp-float .whatsapp-icon {
        width: 24px;
        height: 24px;
    }

    .whatsapp-float .tooltip {
        right: 65px;
        font-size: 12px;
        padding: 6px 10px;
    }

    /* ===== UTILIDADES RESPONSIVE ===== */
    .d-none-mobile {
        display: none !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }

    .text-left-mobile {
        text-align: left !important;
    }

    .px-mobile-0 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .py-mobile-2 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .mb-mobile-3 {
        margin-bottom: 1.5rem !important;
    }

    .w-100-mobile {
        width: 100% !important;
    }

    /* ===== FORMULARIOS ===== */
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px;
        /* Evita zoom en iOS */
    }

    /* ===== HERO SECTION MOBILE ===== */
    .hero-section-desktop {
        display: none !important;
    }

    .hero-section-mobile {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    /* Banner mobile */
    #offersHomeCarouselMobile {
        margin-bottom: 2rem;
    }

    #offersHomeCarouselMobile .carousel-inner {
        border-radius: 0;
        overflow: hidden;
    }

    #offersHomeCarouselMobile .carousel-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    #offersHomeCarouselMobile .carousel-item a {
        display: block;
        text-decoration: none;
    }

    /* Contenido del hero en mobile */
    .slider-description-mobile {
        padding: 0 15px;
        margin-top: 0;
    }

    .hero-title-mobile {
        font-size: 42px;
        line-height: 1.2;
        font-weight: 400;
        color: #172690;
        letter-spacing: 0.05em;
        margin-bottom: 20px;
        text-align: center;
    }

    .hero-subtitle-mobile {
        font-size: 16px;
        color: #666;
        margin-bottom: 30px;
        padding: 0 10px;
        line-height: 1.5;
    }

    .hero-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 0 15px;
    }

    .hero-buttons-mobile .btn-register,
    .hero-buttons-mobile .btn-know-more {
        width: 100%;
        max-width: 280px;
        min-height: 55px;
        font-size: 16px;
        margin: 0;
    }

    .hero-buttons-mobile .btn-know-more {
        text-align: center;
        justify-content: center;
    }

    .hero-buttons-mobile .btn-know-more i {
        position: static;
        transform: none;
        margin-left: 8px;
    }
}

/* ============================================
   DESKTOP - OCULTAR ELEMENTOS MOBILE
   ============================================ */

@media (min-width: 768px) {
    .hero-section-mobile {
        display: none !important;
    }

    .d-none-desktop {
        display: none !important;
    }

    /* Botón WhatsApp en desktop */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float a {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float .whatsapp-icon {
        width: 25px;
        height: 25px;
    }

    .whatsapp-float .tooltip {
        right: 70px;
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* ============================================
   ESTILOS BASE GLOBALES - WHATSAPP FLOAT
   ============================================ */

/* Estilos base del botón WhatsApp flotante (aplican a todos los tamaños) */
.whatsapp-float {
    position: fixed;
    z-index: 9999;
    animation: pulse 2s infinite;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

.whatsapp-float .whatsapp-icon {
    color: white;
    display: block;
}

.whatsapp-float .tooltip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float .tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

.whatsapp-float a:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   UTILIDADES GLOBALES
   ============================================ */

/* Imágenes responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Animaciones reducidas para accesibilidad */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Estilos para impresión */
@media print {
    .no-print {
        display: none !important;
    }

    .hero-title {
        font-size: 24px;
        color: #000;
    }
}