/* ============================================
   GiftLand - Ultra Premium Design 2025
   Epic Animations & Glassmorphism Effects
   ============================================ */

:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #ff006e;
    --tertiary: #00f5ff;
    --accent: #ffd60a;
    --dark: #0a0e27;
    --darker: #050814;
    --light: #ffffff;
    --gray: #64748b;
    --success: #06d6a0;
    --error: #ef4444;
    --warning: #f59e0b;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 212, 255, 0.25);
    --blur: 10px;
    --transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, var(--darker) 0%, #1a1f3a 50%, var(--dark) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* ============================================
   TIPOGRAFÍA & HEADINGS
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: #e0e0e0;
    line-height: 1.8;
}

/* ============================================
   HEADER & NAVEGACIÓN
   ============================================ */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
}

header:hover {
    background: rgba(10, 14, 39, 0.95);
    border-bottom-color: rgba(0, 212, 255, 0.3);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.logo-icon {
    font-size: 2rem;
    animation: spin 20s linear infinite;
}

.search-bar {
    flex: 1;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--light);
    font-size: 0.95rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.search-bar input:focus {
    outline: none;
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    border-color: var(--tertiary);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-menu a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--tertiary));
    transition: width 0.6s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-icon {
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--light);
}

.nav-icon:hover {
    color: var(--primary);
    transform: scale(1.2) rotate(5deg);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary);
    color: var(--light);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   DROPDOWN CATEGORÍAS
   ============================================ */

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: rgba(10, 14, 39, 0.95) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 12px !important;
    min-width: 250px !important;
    z-index: 1000 !important;
    list-style: none !important;
    padding: 1rem 0 !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2) !important;
    margin-top: 0.5rem !important;
}

.dropdown-menu.show {
    display: block !important;
    animation: slideInDown 0.3s ease !important;
}

.dropdown-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background: rgba(0, 212, 255, 0.1) !important;
    color: var(--primary) !important;
    padding-left: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    color: var(--dark);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #ff1493 100%);
    color: var(--light);
}

.btn-secondary:hover {
    transform: translateY(-4px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--darker) 0%, rgba(0, 212, 255, 0.1) 50%, var(--dark) 100%);
    padding: 80px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
    animation-delay: -2s;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 10s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
    animation: slideInDown 1s ease 0.3s both;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    animation: slideInUp 1s ease 0.4s both;
}

.hero-content > div {
    animation: slideInUp 1s ease 0.5s both;
}

/* ============================================
   ANIMACIONES ÉPICAS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ============================================
   SECCIONES
   ============================================ */

section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CATEGORÍAS
   ============================================ */

.categories-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.05) 100%);
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.category-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    color: var(--light);
}

.category-card p {
    font-size: 0.95rem;
}

/* ============================================
   PRODUCTOS
   ============================================ */

.products-section {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
    padding: 1.5rem;
    background: transparent;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.product-name {
    color: var(--light);
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ============================================
   LAYOUT GRID
   ============================================ */

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}

.col-6 {
    grid-column: span 6;
}

@media (max-width: 1024px) {
    .col-3 { grid-column: span 6; }
    .col-4 { grid-column: span 4; }
    .col-6 { grid-column: span 6; }
}

@media (max-width: 768px) {
    .col-3, .col-4, .col-6 {
        grid-column: span 12;
    }
}

/* ============================================
   FORMULARIOS & INPUTS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(0, 212, 255, 0.2);
    color: #ffffff !important;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

option {
    background: var(--dark);
    color: #ffffff;
}

label {
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: rgba(10, 14, 39, 0.95);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--gray);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

/* Trust Badges & Payment Methods */
.trust-badges-section {
    margin: 3rem 0 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
}

.trust-badge i {
    font-size: 2rem;
    color: var(--primary);
}

.trust-badge strong {
    display: block;
    color: var(--light);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.trust-badge span {
    display: block;
    color: var(--gray);
    font-size: 0.75rem;
}

.payment-methods {
    text-align: center;
}

.payment-methods h5 {
    color: var(--light);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.payment-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.payment-icons i {
    font-size: 2.5rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* ============================================
   ALERTAS
   ============================================ */

.alert {
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert i {
    font-size: 1.5rem;
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.alert-success {
    background: rgba(6, 214, 160, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-error,
.alert-warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

/* ============================================
   MOBILE MENU HAMBURGER
   ============================================ */

/* Desktop: Hide mobile elements by default */
.mobile-menu-toggle {
    display: none !important;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.mobile-menu-toggle i {
    pointer-events: none;
}

/* Mobile Menu Overlay - Hidden on desktop */
.mobile-nav-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideInLeft 0.3s ease forwards;
}

.mobile-nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-menu li:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-menu li:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-menu li:nth-child(4) { animation-delay: 0.4s; }
.mobile-nav-menu li:nth-child(5) { animation-delay: 0.5s; }

.mobile-nav-menu a {
    display: block;
    color: var(--light);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    color: var(--primary);
    padding-left: 2rem;
    background: rgba(0, 212, 255, 0.1);
}

.mobile-search-bar {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.mobile-search-bar input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--light);
    font-size: 1rem;
}

/* ============================================
   DESKTOP NAVIGATION (> 768px)
   ============================================ */

/* Ensure desktop navigation is visible on large screens */
@media (min-width: 769px) {
    /* Force hide mobile elements */
    .mobile-menu-toggle {
        display: none !important;
    }

    .mobile-nav-overlay {
        display: none !important;
    }

    /* Force show desktop navigation */
    .nav-menu {
        display: flex !important;
        gap: 3rem;
    }

    .search-bar {
        display: block !important;
        flex: 1;
        max-width: 400px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Tablets y pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    nav {
        gap: 2rem;
    }

    .search-bar {
        max-width: 300px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
}

/* Tablets pequeñas y móviles grandes (600px - 768px) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Header ajustes */
    header {
        padding: 0.75rem 0;
    }

    nav {
        gap: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    /* Ocultar menu desktop, mostrar hamburger */
    .nav-menu {
        display: none !important;
    }

    .search-bar {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .mobile-nav-overlay {
        display: none !important;
    }

    .mobile-nav-overlay.active {
        display: block !important;
    }

    .nav-icons {
        gap: 1rem;
    }

    .nav-icon {
        font-size: 1.3rem;
    }

    /* Typography */
    h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.95rem;
    }

    /* Hero section */
    .hero {
        min-height: 70vh;
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        height: 160px;
        padding: 1rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    /* Categories */
    .category-card {
        padding: 2rem 1.5rem;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .btn-small {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .trust-badges {
        gap: 1rem;
    }

    .trust-badge {
        padding: 0.75rem 1rem;
        min-width: 150px;
    }

    .trust-badge i {
        font-size: 1.5rem;
    }

    .payment-icons i {
        font-size: 2rem;
    }

    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        padding: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Móviles pequeños (480px - 600px) */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 60vh;
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .product-image {
        height: 140px;
        padding: 0.75rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .category-icon {
        font-size: 2rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }
}

/* Móviles muy pequeños (< 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Header */
    header {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-icon {
        font-size: 1.25rem;
    }

    .nav-icons {
        gap: 0.75rem;
    }

    .nav-icon {
        font-size: 1.2rem;
    }

    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }

    /* Typography */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Hero */
    .hero {
        min-height: 50vh;
        padding: 20px 0;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Sections */
    section {
        padding: 2rem 0;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    /* Products - Una sola columna en móviles pequeños */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }

    .product-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        padding: 0.5rem;
    }

    .product-info {
        padding: 0 0 0 1rem;
        flex: 1;
    }

    .product-category {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .product-name {
        font-size: 0.95rem;
        margin: 0.25rem 0;
    }

    .product-description {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Categories en una columna */
    .row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        padding: 1.25rem;
    }

    .category-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .category-card h3 {
        font-size: 0.95rem;
    }

    .category-card p {
        font-size: 0.8rem;
    }

    /* Buttons - Touch friendly (min 44x44px) */
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        min-height: 44px;
        justify-content: center;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .btn-small {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .btn-block {
        width: 100%;
    }

    /* Footer */
    footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .footer-section a {
        padding: 0.4rem 0;
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .social-links {
        justify-content: center;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Trust Badges */
    .trust-badges {
        flex-direction: column;
        gap: 0.75rem;
    }

    .trust-badge {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 0.75rem;
    }

    .trust-badge i {
        font-size: 1.25rem;
    }

    .trust-badge strong {
        font-size: 0.85rem;
    }

    .trust-badge span {
        font-size: 0.7rem;
    }

    .payment-icons {
        gap: 1rem;
    }

    .payment-icons i {
        font-size: 1.75rem;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        padding: 12px 10px;
        font-size: 16px; /* Prevent iOS zoom */
        border-radius: 6px;
    }

    label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    /* Alerts */
    .alert {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .alert i {
        font-size: 1.2rem;
    }

    /* Dropdowns */
    .dropdown-menu {
        min-width: 200px !important;
        max-width: calc(100vw - 2rem) !important;
    }

    .dropdown-menu li a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Landscape mode para móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    section {
        padding: 2rem 0;
    }
}

/* iPhone SE, iPhone 5 y dispositivos pequeños (< 375px) */
@media (max-width: 374px) {
    .container {
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .product-image {
        width: 80px;
        height: 80px;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .product-description {
        font-size: 0.75rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* Large screens optimization (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 3rem;
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    .hero p {
        font-size: 1.4rem;
    }
}

/* Touch target improvements for all devices */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .btn,
    .nav-icon,
    .social-link,
    .product-card,
    .category-card,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Larger touch targets */
    .nav-icon {
        padding: 0.5rem;
    }

    /* Remove hover effects on touch devices */
    .product-card:hover,
    .category-card:hover,
    .btn:hover {
        transform: none;
    }

    /* Tap highlight color */
    * {
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
    }
}

/* ============================================
   SOCIAL PROOF NOTIFICATIONS
   ============================================ */

.social-proof-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    pointer-events: none;
}

.social-proof-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 400px;
    pointer-events: all;
    cursor: pointer;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-proof-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.social-proof-notification.hide {
    opacity: 0;
    transform: translateX(-100px);
}

.social-proof-notification:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.25);
}

.social-proof-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.social-proof-content {
    flex: 1;
    min-width: 0;
}

.social-proof-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.social-proof-action {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.social-proof-action strong {
    color: var(--primary);
    font-weight: 600;
}

.social-proof-time {
    color: #94a3b8;
    font-size: 0.75rem;
    font-style: italic;
}

.social-proof-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.social-proof-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .social-proof-notification {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(0, 212, 255, 0.3);
    }

    .social-proof-name {
        color: #f1f5f9;
    }

    .social-proof-action {
        color: #cbd5e1;
    }

    .social-proof-action strong {
        color: var(--primary);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .social-proof-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .social-proof-notification {
        min-width: 0;
        max-width: 100%;
        padding: 12px 14px;
    }

    .social-proof-icon {
        font-size: 1.75rem;
    }

    .social-proof-name {
        font-size: 0.85rem;
    }

    .social-proof-action {
        font-size: 0.8rem;
    }

    .social-proof-time {
        font-size: 0.7rem;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .social-proof-notification {
        min-width: 280px;
        max-width: 350px;
    }
}
