/* =========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    --primary-color: #c9a870;
    --primary-dark: #a88859;
    --secondary-color: #8b7355;
    --accent-color: #d4a574;
    --text-color: #2c2c2c;
    --text-light: #666;
    --light-bg: #faf8f5;
    --white: #ffffff;
    --black: #1a1a1a;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1.2rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:active {
    transform: scale(0.95);
}

.logo-icon {
    color: var(--primary-color);
    font-size: 1.8rem;
    animation: swing 3s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.logo h1 {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* Submenu styles */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    padding: 0;
}

.submenu a {
    padding: 0.8rem 1.5rem;
    display: block;
    font-size: 0.9rem;
}

.submenu a::after {
    display: none;
}

.submenu a:hover {
    background: linear-gradient(135deg, #f8f4f0 0%, #fdf9f5 100%);
    color: var(--primary-color);
}

.submenu-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.has-submenu:hover .submenu-toggle i {
    transform: rotate(180deg);
}

.cart-icon {
    position: relative;
    font-size: 1.4rem;
    padding: 0.5rem !important;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -6px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 0.5rem;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, #c9a870 0%, #a88859 50%, #8b7355 100%);
    color: var(--white);
    padding: 160px 24px 120px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 500;
}

.hero-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
    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.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background-color: var(--light-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(201, 168, 112, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 168, 112, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================
   SECTIONS
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
    padding: 60px 24px;
    background-color: var(--light-bg);
}

.about-simple {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-simple h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-simple p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-content {
    display: grid;
    gap: 4rem;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.4rem;
}

.feature p {
    color: var(--text-light);
    line-height: 1.7;
}

/* =========================================
   PRODUCTS SECTION
   ========================================= */
.featured-products,
.products-section {
    padding: 80px 24px;
}

.featured-products h2,
.products-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Slider de imágenes de productos */
.product-image-slider {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0ebe5 100%);
}

.product-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-slide.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 12px;
    height: 12px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.product-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0ebe5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.product-card:hover .product-image::after {
    left: 100%;
}

.product-info {
    padding: 1.8rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.4rem;
    margin: 0.8rem 0;
    color: var(--text-color);
    font-weight: 600;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.add-to-cart {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(201, 168, 112, 0.3);
}

.add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(201, 168, 112, 0.4);
}

/* =========================================
   PAGE HEADER
   ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(201, 168, 112, 0.7);
    z-index: 1;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 3;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* =========================================
   FILTER SECTION
   ========================================= */
.filter-section {
    padding: 2.5rem 24px;
    background-color: var(--white);
    border-bottom: 1px solid #f0f0f0;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 18px 42px;
    border: 2px solid var(--primary-color);
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}

.filter-btn:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(201, 168, 112, 0.3);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-section {
    padding: 100px 24px;
    background-color: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info,
.contact-form {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.contact-info h2,
.contact-form h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 40px;
    flex-shrink: 0;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.social-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.social-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(201, 168, 112, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 24px 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    transition: var(--transition);
    transform: translateX(0);
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(201, 168, 112, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* =========================================
   MODAL
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 3% auto;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.4s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideDown {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 20px;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--text-color);
    background-color: var(--light-bg);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 2rem;
    color: var(--text-color);
    clear: both;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.cart-item:hover {
    background-color: var(--light-bg);
}

.cart-item-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.cart-item-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

.remove-item {
    background-color: #dc3545;
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-item:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.cart-total {
    text-align: right;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-bg), #f0ebe5);
    border-radius: 8px;
}

.cart-total h3 {
    font-size: 1.6rem;
    color: var(--text-color);
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 73px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu > li > a {
        display: block;
        padding: 1rem 0;
    }
    
    /* Submenu en móvil */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f4f0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin: 0;
        padding: 0;
    }
    
    .has-submenu.active .submenu {
        max-height: 200px;
    }
    
    .submenu li {
        padding: 0;
        border-bottom: none;
    }
    
    .submenu a {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .submenu-toggle {
        width: 100%;
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero {
        padding: 120px 24px 80px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
    
    /* Ajustar iconos del header en móvil */
    .page-header h1 i {
        font-size: 1.2rem;
    }
    
    .page-header p i {
        font-size: 0.8rem;
    }
    
    /* Ajustar iconos del logo */
    .logo-icon {
        font-size: 1.3rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    /* Ajustar iconos del carrito */
    .cart-icon i {
        font-size: 1.2rem;
    }
    
    /* Botones de filtro en horizontal y más pequeños */
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* Mantener características en 2 columnas fijas para móvil */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Ajustar iconos de características más pequeños */
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-card {
        padding: 1.2rem 0.8rem;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card p {
        font-size: 0.8rem;
    }
    
    /* Ajustar iconos del banner informativo */
    .info-item-banner i {
        font-size: 1rem;
    }
    
    .info-item-banner span {
        font-size: 0.8rem;
    }
    
    /* Ajustar iconos de redes sociales */
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }

    .modal-content {
        margin: 10% 5%;
        padding: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .feature {
        padding: 2rem 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 240px;
    }
    
    /* Iconos aún más pequeños en móviles pequeños */
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .page-header h1 i {
        font-size: 1rem;
    }
    
    .page-header p {
        font-size: 0.85rem;
    }
    
    .page-header p i {
        font-size: 0.7rem;
    }
    
    .logo h1 {
        font-size: 0.95rem;
    }
    
    .logo-icon {
        font-size: 1.1rem;
    }
    
    /* Botones de filtro más compactos */
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .filters {
        gap: 0.8rem;
    }
    
    /* Características en 2 columnas fijas en móviles pequeños */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card {
        padding: 1rem 0.6rem;
    }
    
    .feature-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .feature-card p {
        font-size: 0.7rem;
        line-height: 1.4;
    }
    
    .info-item-banner i {
        font-size: 0.9rem;
    }
    
    .info-item-banner span {
        font-size: 0.75rem;
    }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.text-center {
    text-align: center;
}

/* =========================================
   ADMIN PANEL
   ========================================= */
.admin-panel-content {
    max-width: 900px;
    max-height: 90vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 100;
    padding-top: 1rem;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--light-bg);
    position: sticky;
    top: 70px;
    background: var(--white);
    z-index: 99;
    padding-top: 0.5rem;
}

.admin-tab {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
}

.admin-product-item:hover {
    background: #f0ebe5;
}

.admin-product-info {
    flex: 1;
}

.admin-product-info h4 {
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.admin-product-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.admin-product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 1.5rem;
}

.admin-product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit, .btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-edit {
    background-color: #28a745;
    color: white;
}

.btn-edit:hover {
    background-color: #218838;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
}

#adminPassword {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

#adminPassword:focus {
    outline: none;
    border-color: var(--primary-color);
}

.admin-product-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

/* =========================================
   INFO BANNER
   ========================================= */
.info-banner {
    background: linear-gradient(135deg, #f8f4f0 0%, #fdf9f5 100%);
    border-bottom: 1px solid #e8d5c4;
    padding: 1rem 24px;
}

.info-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-item-banner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.info-item-banner i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features-section {
    padding: 80px 24px;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f8f4f0 0%, #fdf9f5 100%);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(201, 168, 112, 0.3);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================================
   FOOTER IMPROVEMENTS
   ========================================= */
.footer-contact {
    margin-top: 1rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
}

/* =========================================
   RESPONSIVE IMPROVEMENTS
   ========================================= */
@media (max-width: 768px) {
    .info-items {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-item-banner {
        font-size: 0.85rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-product-actions {
        width: 100%;
    }
    
    .admin-product-actions button {
        flex: 1;
    }
}

/* =========================================
   NUEVAS CLASES PARA EVITAR INLINE STYLES
   ========================================= */

/* Modal de login admin */
.admin-login-modal {
    max-width: 400px;
}

/* Botón ancho completo */
.full-width {
    width: 100%;
}

/* Mensaje de error de login */
.login-error {
    color: #dc3545;
    margin-top: 1rem;
    display: none;
    text-align: center;
}

/* Iconos en labels */
.label-icon {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Select de categoría con padding mejorado */
#productCategory {
    padding: 0.8rem;
    font-size: 1rem;
}

/* Input de archivo oculto */
.hidden {
    display: none;
}

/* Botón de añadir imagen */
.add-image-btn {
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Icono de cámara */
.camera-icon {
    font-size: 1.2rem;
}

/* Contador de imágenes */
.image-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Previsualización de imágenes */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
