/* =============================================
   ESTILOS MODERNOS RESPONSIVE - DELICIAS
   Premium & Clean Design System
   ============================================= */

:root {
    /* Paleta de Colores Premium */
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;

    --bg-color: #f8f9fa;
    --bg-glass: rgba(255, 255, 255, 0.95);

    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #ffffff;

    --success: #27ae60;
    --warning: #f39c12;

    /* Sombras y Efectos */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-round: 50px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =============================================
   NAVBAR PREMIUM
   ============================================= */
.navbar {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(231, 76, 60, 0.05);
}

.btn-ofertas {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-round);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.btn-ofertas:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* =============================================
   HERO SECTION MODERNIZADA
   ============================================= */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.5) 0%, rgba(52, 152, 219, 0.45) 100%), url('imagenes/bg-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 1rem 5rem;
    text-align: center;
    color: white;
    border-radius: 0 0 50px 50px;
    margin-bottom: 3rem;
    overflow: hidden;
    margin-top: -1px;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* SEARCH BOX */
.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    width: 100%;
    padding: 1.2rem 3rem 1.2rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.search-box:focus {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.3rem;
    pointer-events: none;
}

/* TRUST BADGES */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.trust-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.trust-item i {
    color: var(--warning);
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.product-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #f8f9fa;
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0;
}

.btn-card-action {
    width: 100%;
    margin-top: 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.6rem;
}

/* =============================================
   FOOTER
   ============================================= */
.main-footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
    color: white;
    text-decoration: none;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* =============================================
   UTILITIES & COMPONENTS
   ============================================= */
.section-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.stats-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20BA56;
}

/* Cart Float */
.cart-float {
    position: fixed;
    bottom: 30px;
    right: 100px;
    /* Positioned to the left of WhatsApp */
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.cart-float:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 4rem 1rem;
        border-radius: 0 0 30px 30px;
    }

    .search-box {
        padding: 1rem 1.5rem;
    }

    .trust-bar {
        gap: 0.8rem;
    }

    .nav-link {
        padding: 0.8rem 0;
    }
}