/**
 * ESSENIX - Diseño Profesional & Moderno
 * Paleta: Dorado (#C9A063) y Blanco (#FFFFFF)
 */

:root {
    --primary: #C9A063;
    --primary-dark: #A67C47;
    --primary-light: #E5D4B8;
    --white: #FFFFFF;
    --gray-900: #0F0F0F;
    --gray-800: #1A1A1A;
    --gray-700: #2D2D2D;
    --gray-600: #404040;
    --gray-400: #A0A0A0;
    --gray-300: #D0D0D0;
    --gray-200: #E8E8E8;
    --gray-100: #F5F5F5;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --border-light: #E8E8E8;
    
    --spacing-1: 4px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-6: 24px;
    --spacing-8: 32px;
    --spacing-12: 48px;
    
    --font-sans: 'Inter', 'Segoe UI', -apple-system, system-ui, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-display: 'Poppins', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ======================== UTILIDADES DE ANIMACIÓN ======================== */

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pulse-on-hover {
    transition: transform 0.3s ease-out;
}

.pulse-on-hover:hover {
    animation: pulse 1s ease-in-out infinite;
}

/* ======================== HEADER ======================== */

header {
    background: var(--white);
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Compensar espacio del header fixed */
body {
    padding-top: 70px;
}

.navbar {
    max-width: 100%;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-6);
    position: relative;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: var(--transition);
    width: 44px;
    height: 44px;
    animation: fadeInDown 0.6s ease-out;
}

.menu-toggle:hover {
    transform: scale(1.15) rotate(5deg);
    color: var(--primary-dark);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-3);
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    transition: var(--transition);
    flex: 1;
    justify-content: center;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    animation: slideInDown 0.6s ease-out;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05) rotate(-2deg);
    animation: float 3s ease-in-out infinite;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInDown 0.6s ease-out;
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.icon-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.icon-btn:hover {
    transform: scale(1.15) rotate(5deg);
}

.icon-btn:active {
    transform: scale(0.9);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
}

.icon-btn:hover svg {
    stroke: var(--primary-dark);
    transform: scale(1.1);
}

nav {
    display: flex;
    list-style: none;
    gap: var(--spacing-8);
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-8);
    align-items: center;
}

/* Menú lateral */
.side-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(90vw, 340px);
    height: 100vh;
    background: var(--white);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    padding: 68px 16px 28px 16px;
    overflow-y: auto;
    left: -100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-nav.active {
    left: 0;
}

.side-nav ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    width: 100%;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: var(--transition);
    color: var(--text-dark);
    text-decoration: none;
    animation: slideInLeft 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.side-nav a::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(201, 160, 99, 0.05);
    transition: left 0.3s ease-out;
    z-index: -1;
}

.side-nav a:hover::before {
    left: 0;
}

.side-nav a i {
    color: var(--primary);
    font-size: 18px;
    width: 20px;
    text-align: center;
    transition: var(--transition);
    animation: scaleInCenter 0.5s ease-out;
}

.side-nav a:hover i {
    transform: scale(1.3) rotate(10deg);
    color: var(--primary-dark);
}

.side-nav a:hover {
    border-color: var(--primary);
    background: #fdf8f1;
    color: var(--primary);
    transform: translateX(8px);
}

.side-nav a:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.side-nav a:hover {
    border-color: var(--border-light);
    background: #fdf8f1;
    color: var(--primary);
}


.side-nav-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 0 0 12px 0;
    width: 100%;
    border-bottom: 2px solid var(--border-light);
}

.side-nav-logo img {
    height: 62px;
    width: auto;
    object-fit: contain;
}

.side-nav-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 16px;
    color: var(--primary);
    margin: 0;
}


.side-nav-social {
    margin-top: 22px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-nav-social-title {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.social-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 0px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gray-100);
    width: 100%;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.social-link i {
    color: var(--primary);
    font-size: 20px;
    width: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    pointer-events: none;
}

.social-link:hover,
.social-link:focus {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(201, 160, 99, 0.4);
    transform: translateY(-2px);
}

.social-link:hover i,
.social-link:focus i {
    color: var(--white);
    transform: scale(1.2) rotate(5deg);
}

.side-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1999;
}

.side-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 2.5;
    fill: none;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* ======================== HERO ======================== */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--white);
    width: 100%;
    max-width: 100vw;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(201, 160, 99, 0.2);
    margin: 0 auto;
    animation: heroSlideIn 0.8s ease-out;
    aspect-ratio: 16 / 7;
    max-height: 360px;
    min-height: 220px;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--primary-light) 100%);
    animation: zoomIn 0.8s ease-out;
}

@media (min-width: 1200px) {
    .hero {
        aspect-ratio: 16 / 6;
        max-height: 540px;
        min-height: 320px;
    }

    .hero-image {
        object-fit: cover;
        object-position: center top;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ======================== ANIMACIONES ADICIONALES ======================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(201, 160, 99, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(201, 160, 99, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes scaleInCenter {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-8);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 7vw, 4.4rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: var(--spacing-8);
    line-height: 1.7;
    max-width: 550px;
}

.hero-controls {
    display: none;
}

/* ======================== BUTTONS ======================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, #f1d08a, #d9ad55);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(212, 158, 64, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f6dfb0, #e1ba63);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(212, 158, 64, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(241,208,138,0.45), rgba(217,173,85,0.28));
    color: #ffffff;
    border: 1px solid rgba(217,173,85,0.8);
    box-shadow: 0 4px 12px rgba(217,173,85,0.25);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f6dfb0, #e1ba63);
    border-color: rgba(217,173,85,0.95);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(217,173,85,0.4);
}

.btn-outline {
    background: linear-gradient(135deg, rgba(241,208,138,0.35), rgba(217,173,85,0.25));
    color: #ffffff;
    border: 2px solid rgba(217,173,85,0.8);
    box-shadow: 0 4px 12px rgba(217,173,85,0.3);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #f6dfb0, #e1ba63);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgba(217,173,85,0.45);
}

/* ======================== SECTIONS ======================== */

section {
    padding: var(--spacing-12) var(--spacing-8);
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    width: 100%;
    animation: slideInUp 0.6s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4AF37 20%, #D4AF37 80%, transparent);
    border-radius: 2px;
    animation: scaleInCenter 0.8s ease-out 0.3s both;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    text-align: center;
    max-width: 650px;
    margin: 0 auto var(--spacing-12);
    animation: fadeIn 0.8s ease-out 0.2s both;
    margin-top: 30px;
    line-height: 1.7;
    font-weight: 400;
}

/* ======================== PRODUCT GRID ======================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-8);
    margin-top: var(--spacing-8);
}

.product-card {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    position: relative;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 160, 99, 0.05), rgba(201, 160, 99, 0));
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
    z-index: 1;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.product-card:hover {
    box-shadow: 0 18px 44px rgba(201, 160, 99, 0.18), 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-10px) scale(1.02) rotateX(2deg) rotateY(-2deg);
    border-color: var(--primary-light);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--primary-light) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease-out;
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.45s ease-out;
    animation: zoomIn 0.6s ease-out;
}

.product-card:hover .product-image img {
    transform: scale(1.14) rotate(1deg);
    filter: brightness(1.05);
    animation: hover-pan 6s ease-in-out infinite alternate;
}

@keyframes hover-pan {
    0% { transform: scale(1.14) rotate(1deg) translate3d(0, 0, 0); }
    50% { transform: scale(1.16) rotate(1deg) translate3d(-6px, -4px, 0); }
    100% { transform: scale(1.14) rotate(1deg) translate3d(6px, 4px, 0); }
}

.product-card:hover .product-image::after {
    transform: translateX(120%);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(201, 160, 99, 0.3);
    backdrop-filter: blur(4px);
}

.product-badge.discount {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    left: 12px;
    right: auto;
}

.product-info {
    padding: 20px 18px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.product-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    flex: 1;
}

.price-original {
    color: var(--gray-400);
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 600;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease-out;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    text-decoration: none;
    white-space: nowrap;
}

.product-actions .btn i {
    font-size: 16px;
    flex-shrink: 0;
}

.product-actions .btn span {
    flex: 1;
    text-align: center;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, #f1d08a, #d9ad55);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(212, 158, 64, 0.35);
}

.product-actions .btn-primary:hover {
    box-shadow: 0 10px 24px rgba(212, 158, 64, 0.5);
    transform: translateY(-2px);
}

.product-actions .btn-secondary {
    background: linear-gradient(135deg, rgba(241,208,138,0.35), rgba(217,173,85,0.2));
    color: #ffffff;
    border: 1px solid rgba(217,173,85,0.7);
}

.product-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #f6dfb0, #e1ba63);
    color: #ffffff;
    border-color: rgba(217,173,85,0.9);
}

/* ======================== FORMS ======================== */

.form-group {
    margin-bottom: var(--spacing-6);
}

label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-2);
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 15px;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* ======================== FOOTER ======================== */

footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--spacing-12) var(--spacing-8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-8);
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--spacing-4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-3);
}

.footer-section a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-section p {
    color: #999;
    font-size: 14px;
    line-height: 1.8;
}

/* Social links footer - covered by .social-link styles */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--spacing-6);
    text-align: center;
    color: #777;
    font-size: 13px;
}

.footer-bottom p {
    margin-bottom: var(--spacing-2);
    color: #777;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

/* ======================== UTILITIES ======================== */

.bg-light {
    background: var(--gray-100);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-600);
}

.list-bullets {
    list-style: none;
    display: grid;
    gap: var(--spacing-4);
}

.list-bullets li {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    color: var(--gray-600);
}

.list-bullets i {
    color: var(--primary);
    flex-shrink: 0;
}

/* ======================== ALERTS ======================== */

.alert {
    padding: var(--spacing-4) var(--spacing-6);
    border-radius: 6px;
    margin-bottom: var(--spacing-6);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
}

.alert-success {
    background: linear-gradient(135deg, #fff6e4, #f3ddad);
    color: #4c3812;
    border-color: #d9ad55;
}

.alert-error {
    background: linear-gradient(135deg, #fde9e7, #f7c4bd);
    color: #7c1f1a;
    border-color: #e15b4f;
}

.alert-info {
    background: linear-gradient(135deg, #fff9ed, #f0e0b9);
    color: #4c3812;
    border-color: #d9ad55;
}

.alert-warning {
    background: linear-gradient(135deg, #fff4dc, #f4d89f);
    color: #4c3812;
    border-color: #e1b05f;
}

/* ======================== TABLES ======================== */

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

thead {
    background: linear-gradient(135deg, rgba(241,208,138,0.28), rgba(217,173,85,0.18));
}

th {
    padding: var(--spacing-4) var(--spacing-6);
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
}

td {
    padding: var(--spacing-4) var(--spacing-6);
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

tbody tr:hover {
    background: linear-gradient(135deg, rgba(241,208,138,0.18), rgba(217,173,85,0.12));
}

/* ======================== RESPONSIVE ======================== */

@media (max-width: 768px) {
    .navbar {
        padding: 10px var(--spacing-4);
    }

    .menu-toggle {
        display: flex;
    }

    .logo {
        flex: none;
        justify-content: center;
    }

    .logo img {
        height: 64px;
    }

    nav {
        display: none;
    }

    .navbar-right {
        gap: 12px;
    }

    .hero {
        border-radius: 20px;
        aspect-ratio: 16 / 9;
        max-height: 220px;
        min-height: 150px;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        height: 240px;
    }

    .product-info {
        padding: 14px 12px 12px 12px;
    }

    .product-name {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .product-price {
        margin-bottom: 10px;
    }

    .price-current {
        font-size: 15px;
    }

    .product-badge {
        padding: 6px 10px;
        font-size: 10px;
        top: 8px;
        right: 8px;
    }

    .product-actions .btn {
        padding: 9px 10px;
        font-size: 12px;
    }

    section {
        padding: var(--spacing-8) var(--spacing-4);
    }
}

@media (max-width: 600px) {
    /* Fuerza dos columnas en el grid de productos para pantallas pequeñas */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .products-grid .product-card {
        width: 100%;
        max-width: 100%;
    }

    .products-grid .product-image {
        height: 200px;
    }
}

@media (max-width: 640px) {
    /* Ajustes adicionales para que quepan dos tarjetas sin desbordes */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(160px, 1fr));
        gap: 8px;
        padding: 0 4px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        height: 170px;
    }

    .product-info {
        padding: 14px 12px 12px 12px;
    }

    .product-name {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 4px;
    }

    .product-price {
        margin-bottom: 10px;
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
    }

    .price-current {
        font-size: 20px !important;
    }

    .product-actions {
        gap: 8px;
        flex-direction: column;
    }

    .product-actions .btn {
        padding: 12px 14px;
        font-size: 12px;
        min-height: 44px;
        gap: 6px;
    }

    .product-actions .btn i {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px var(--spacing-4);
    }

    .logo {
        gap: var(--spacing-2);
        font-size: 18px;
    }

    .logo img {
        height: 56px;
    }

    nav ul {
        gap: var(--spacing-3);
    }

    .hero {
        margin-top: -8px;
        border-radius: 16px;
        aspect-ratio: 16 / 9;
        max-height: 220px;
        min-height: 150px;
    }

    .hero-image {
        object-fit: contain;
        object-position: center;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: var(--spacing-6);
        padding: 0 0 12px 0;
    }


    .products-grid .product-card {
        width: 100%;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-image {
        height: 190px;
    }

    .product-info {
        padding: 10px 8px 8px 8px;
    }

    .product-name {
        font-size: 12px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .product-price {
        margin-bottom: 8px;
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
    }

    .price-original {
        font-size: 13px;
        color: #888;
    }

    .price-current {
           font-size: 20px !important;
           font-weight: 900;
           line-height: 1.1;
           letter-spacing: -0.5px;
           color: #c9a063;
           background: none;
           -webkit-text-fill-color: unset;
           background-clip: unset;
    }

    .product-badge {
        padding: 4px 6px;
        font-size: 8px;
        top: 4px;
        right: 4px;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 6px;
    }

    .product-actions .btn {
        padding: 9px 10px;
        font-size: 11px;
        border-radius: 8px;
        width: 100%;
        max-width: none;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        white-space: nowrap;
    }

    .product-actions .btn i {
        font-size: 12px;
    }

    .product-actions .btn span {
        flex: 1;
    }

    .hero {
        margin-top: -8px;
        border-radius: 16px;
        aspect-ratio: 16 / 9;
        max-height: 200px;
        min-height: 140px;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .hero-image {
        object-fit: contain;
        object-position: center;
    }
}

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #D4AF37 0%, #C9A063 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(201, 160, 99, 0.4), 0 0 0 0 rgba(212, 175, 55, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    animation: float 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-float::before {
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #C9A063 0%, #A67C47 100%);
    transform: scale(1.15) translateY(-4px) rotate(10deg);
    box-shadow: 0 8px 32px rgba(201, 160, 99, 0.6), 0 0 20px rgba(212, 175, 55, 0.4);
    animation: none;
}

.whatsapp-float i {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover i {
    animation: none;
    transform: scale(1.2);
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Carrito de compras */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 900;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 901;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark, #0f0f0f);
}

.cart-subtitle {
    margin: 4px 0 0 0;
    color: var(--color-gray, #6b6b6b);
    font-size: 0.93rem;
}

.cart-close {
    background: #f4f4f4;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-close:hover {
    background: #e8e8e8;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 90px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(241, 208, 138, 0.08), #fff);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #f8f8f8;
}

.cart-item-name {
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--color-dark, #0f0f0f);
}

.cart-item-price {
    color: var(--color-gray, #6b6b6b);
    font-size: 0.95rem;
    margin: 0 0 8px 0;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 6px 10px;
}

.cart-qty button {
    border: none;
    background: none;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
}

.cart-qty span {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
}

.cart-item-total {
    text-align: right;
    font-weight: 700;
    color: var(--color-dark, #0f0f0f);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cart-remove {
    border: none;
    background: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    display: grid;
    gap: 10px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-checkout {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-clear {
    width: 100%;
    background: #f4f4f4;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-clear:hover {
    background: #e9e9e9;
}

.cart-empty {
    text-align: center;
    color: var(--color-gray, #6b6b6b);
    padding: 30px 12px;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 520px) {
    .cart-item {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto;
    }
    .cart-item-total {
        grid-column: 2;
    }
}

/* ======================== BUSCADOR MODERNO ======================== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 2000;
    padding: 20px;
    animation: searchFadeIn 0.3s ease-out;
}

.search-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    padding-top: 80px;
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.search-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    overflow: hidden;
    animation: searchSlideDown 0.3s ease-out;
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
    z-index: 10;
}

.search-modal-close:hover {
    color: var(--primary);
    transform: scale(1.1) rotate(90deg);
}

.search-modal-close svg {
    width: 20px;
    height: 20px;
}

.search-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.search-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    font-family: var(--font-display);
}

.search-modal-header p {
    font-size: 14px;
    color: var(--gray-400);
}

.search-input-wrapper {
    position: relative;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-100);
    margin: 16px;
    border-radius: 8px;
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
    opacity: 0.6;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-dark);
    font-family: var(--font-sans);
    outline: none;
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-loading {
    color: var(--primary);
    font-size: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
    color: var(--gray-400);
}

.search-empty svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

.search-empty p {
    font-size: 14px;
    font-weight: 500;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    background: var(--gray-50);
}

.search-result-item:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.search-result-image {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 6px;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-desc {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.search-result-price-original {
    color: var(--gray-400);
    text-decoration: line-through;
}

.search-result-price-current {
    color: var(--primary);
}

.search-result-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 0 8px;
    }

    .search-modal.active {
        padding-top: 60px;
    }
    
    .search-modal-content {
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
    }
    
    .search-modal-header {
        padding: 20px 20px 16px;
    }
    
    .search-modal-header h2 {
        font-size: 24px;
    }
    
    .search-input-wrapper {
        margin: 12px;
        padding: 16px 12px;
    }
    
    .search-results {
        padding: 12px;
    }
    
    .search-result-item {
        padding: 10px;
    }
}

