/* ========================================
   MOBILE FIXES - Fajas Íntimos
   Correcciones críticas para UX mobile
   ======================================== */

/* ========================================
   TOUCH TARGETS - Mínimo 44x44px (iOS Guidelines)
   ======================================== */

/* Navigation Icons - Aumentar área de touch */
@media (max-width: 768px) {
    .nav__icon {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }

    .nav__icon:active {
        background-color: rgba(231, 29, 115, 0.1);
    }

    .nav__icon svg {
        width: 24px;
        height: 24px;
    }

    /* Menu Toggle - Área de touch más grande */
    .nav__menu-toggle {
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
        border-radius: 8px;
        transition: background-color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .nav__menu-toggle:active {
        background-color: rgba(231, 29, 115, 0.1);
    }

    /* Menu Links - Mejor spacing para touch */
    .nav__list {
        padding: var(--space-6) var(--space-5);
    }

    .nav__link {
        padding: 16px 20px;
        display: block;
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 1.125rem;
        border-radius: 8px;
        transition: background-color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .nav__link:active {
        background-color: rgba(231, 29, 115, 0.05);
    }
}

/* ========================================
   BUTTONS - Mejorar en mobile
   ======================================== */

@media (max-width: 768px) {
    .btn {
        padding: 16px 28px;
        min-height: 48px;
        font-size: 1rem;
        -webkit-tap-highlight-color: transparent;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .btn--primary,
    .btn--secondary,
    .btn--tertiary {
        width: 100%;
        max-width: 100%;
    }

    .btn:active {
        transform: scale(0.98);
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 18px 32px;
        min-height: 52px;
        font-size: 1.0625rem;
    }
}

/* ========================================
   PRODUCT & CATEGORY CARDS - Touch Friendly
   ======================================== */

@media (max-width: 576px) {
    .product-card,
    .category-card,
    .testimonial-card {
        -webkit-tap-highlight-color: transparent;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    .category-card:active {
        transform: scale(0.98);
    }

    .category-card__cta,
    .product-card button {
        min-height: 44px;
        padding: 12px 20px;
    }

    /* Wishlist button - más grande */
    .product-card__wishlist {
        width: 44px;
        height: 44px;
        top: 8px;
        left: 8px;
    }

    .product-card__wishlist svg {
        width: 22px;
        height: 22px;
    }
}

/* ========================================
   FORMS & INPUTS - Mobile Optimized
   ======================================== */

@media (max-width: 768px) {
    .newsletter__input {
        padding: 18px 20px;
        min-height: 56px;
        font-size: 16px; /* Previene auto-zoom en iOS */
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .newsletter__input:focus {
        outline: none;
        border-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
    }

    /* Form button */
    .newsletter__form .btn--primary {
        min-height: 56px;
        padding: 18px 32px;
        font-size: 1rem;
    }
}

/* ========================================
   WHATSAPP BUTTON - Más accesible en mobile
   ======================================== */

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 64px;
        height: 64px;
        box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
        -webkit-tap-highlight-color: transparent;
    }

    .whatsapp-float:active {
        transform: scale(0.95);
    }

    .whatsapp-float svg {
        width: 36px;
        height: 36px;
    }

    /* Footer WhatsApp button */
    .btn-whatsapp {
        min-height: 56px;
        padding: 18px 24px;
        font-size: 1.0625rem;
        -webkit-tap-highlight-color: transparent;
    }

    .btn-whatsapp:active {
        transform: scale(0.98);
    }
}

/* ========================================
   SPACING - Mejor uso del espacio en mobile
   ======================================== */

@media (max-width: 576px) {
    /* Hero section */
    .hero {
        padding: var(--space-5) 0;
        min-height: auto;
    }

    .hero__container {
        gap: var(--space-5);
    }

    .hero__buttons {
        gap: var(--space-3);
    }

    /* Section spacing */
    .section {
        padding: var(--space-6) 0;
    }

    .section__header {
        margin-bottom: var(--space-6);
    }

    /* Card spacing */
    .products__grid,
    .categories__grid,
    .testimonials__slider,
    .benefits__grid {
        gap: var(--space-5);
    }

    /* Container padding */
    .container {
        padding: 0 var(--space-4);
    }
}

/* ========================================
   TRUST BAR - Mejor en mobile
   ======================================== */

@media (max-width: 576px) {
    .trust-bar__item {
        padding: var(--space-4);
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    .trust-bar__item:active {
        transform: scale(0.98);
    }

    .trust-bar__number {
        font-size: 1.75rem;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .trust-bar__text {
        font-size: 0.8125rem;
        line-height: 1.3;
        text-align: center;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* ========================================
   FOOTER - Links más accesibles
   ======================================== */

@media (max-width: 576px) {
    .footer__links a {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 0.9375rem;
        -webkit-tap-highlight-color: transparent;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .footer__links a:active {
        opacity: 0.7;
    }

    .footer__social a {
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    .footer__social a:active {
        transform: scale(0.95);
    }
}

/* ========================================
   BENEFIT CARDS - Mejor en mobile
   ======================================== */

@media (max-width: 576px) {
    .benefit-card {
        padding: var(--space-5);
        -webkit-tap-highlight-color: transparent;
    }

    .benefit-card__icon {
        width: 96px;
        height: 96px;
        margin-bottom: var(--space-4);
    }

    .benefit-card__icon svg {
        width: 52px;
        height: 52px;
    }

    .benefit-card__title {
        font-size: 1.25rem;
        margin-bottom: var(--space-3);
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .benefit-card__description {
        font-size: 0.9375rem;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* ========================================
   CTA SECTION - Optimizado para mobile
   ======================================== */

@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 5%;
    }

    .cta-title {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .cta-description {
        font-size: 1.125rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .cta-button .btn {
        width: 100%;
        min-height: 56px;
        font-size: 1.0625rem;
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 3rem 5%;
    }

    .cta-title {
        font-size: 1.875rem;
    }

    .cta-description {
        font-size: 1rem;
    }
}

/* ========================================
   TESTIMONIALS - Mejorado para touch
   ======================================== */

@media (max-width: 576px) {
    .testimonial-card {
        padding: var(--space-5);
        -webkit-tap-highlight-color: transparent;
    }

    .testimonial-card__quote {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: var(--space-5);
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .testimonial-card__name {
        font-size: 0.9375rem;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .testimonial-card__avatar {
        width: 48px;
        height: 48px;
    }
}

/* ========================================
   PREVENT AUTO-ZOOM ON INPUTS (iOS)
   ======================================== */

@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important; /* Previene auto-zoom en iOS */
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* ========================================
   REMOVE TAP HIGHLIGHT (Custom feedback)
   ======================================== */

* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
}

a, button, .btn {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   SCROLLING - Smooth on mobile
   ======================================== */

@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    body {
        overflow-x: hidden;
    }
}

/* ========================================
   SAFE AREAS - iOS Notch Support
   ======================================== */

@supports (padding: env(safe-area-inset-left)) {
    .nav {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .footer {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .whatsapp-float {
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: calc(20px + env(safe-area-inset-right));
    }
}

/* ========================================
   ACCESSIBILITY - Reduce Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   FIN DE MOBILE FIXES
   ======================================== */
