:root {
    /* Brand Colors */
    --primary-color: #FFC0CB; /* Rosa Bebé */
    --secondary-color: #3e1f13; /* Chocolate */
    --text-color: #333333;
    --bg-color: #fdfdfd;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #ff9fb1; /* Rosa un poco más oscuro para contraste */
    --secondary-color: #2b150d;
    --text-color: #f0f0f0;
    --bg-color: #1a1a1a;
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
}

/* Glassmorphism Utilities */
.glass-header, .glass-card, .glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

header h1 {
    display: none; /* In case it's used elsewhere */
}

.logo-img {
    height: 70px;
    width: auto;
    border-radius: 50%; /* The logo is circular */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1000;
}
[data-theme="dark"] .hamburger {
    color: var(--primary-color);
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid var(--glass-border);
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: left 0.3s ease;
    padding: 100px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-menu-drawer.open {
    left: 0;
}
.mobile-menu-drawer a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    transition: color 0.3s;
}
.mobile-menu-drawer a:hover {
    color: var(--secondary-color);
}
[data-theme="dark"] .mobile-menu-drawer a:hover {
    color: var(--primary-color);
}
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}
.drawer-overlay.open {
    display: block;
}

/* Main Content */
main {
    padding: 120px 2rem 2rem 2rem;
    min-height: 80vh;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-banner {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--glass-shadow);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 20px;
    background: var(--glass-bg);
    color: var(--text-color);
    cursor: pointer;
    font-weight: bold;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #FFC0CB;
    color: #3e2723;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.tab-btn.active {
    background: var(--secondary-color);
    color: #fff;
}
[data-theme="dark"] .tab-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Grid & Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }
    .card h3 {
        font-size: 1rem;
    }
    .price {
        font-size: 1rem !important;
    }
    .card img {
        height: 150px !important;
    }
}

.card {
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px 0 rgba(144, 98, 77, 0.3); /* Chocolate shadow glow */
}
[data-theme="dark"] .card:hover {
    box-shadow: 0 8px 32px 0 rgba(255, 192, 203, 0.3); /* Pink shadow glow for dark mode */
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Keeps aspect ratio */
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.02);
}

.card h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card h3 {
    color: var(--secondary-color);
}
[data-theme="dark"] .card h3 {
    color: var(--primary-color);
}

.theme-text {
    color: var(--secondary-color) !important;
}
[data-theme="dark"] .theme-text {
    color: var(--primary-color) !important;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    background: rgba(255, 192, 203, 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}
[data-theme="dark"] .price {
    background: rgba(144, 98, 77, 0.4);
}

/* Footer */
footer {
    padding: 2rem;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 2rem;
}

.footer-version, .footer-copyright {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 0.9rem;
}
.footer-copyright {
    padding-right: 80px; /* Shift it to the left to avoid cart overlap */
}
[data-theme="dark"] .footer-version, [data-theme="dark"] .footer-copyright {
    color: var(--text-color);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
}

[data-theme="dark"] .footer-social a {
    color: var(--primary-color);
}

.footer-social a:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}
/* Header Slogan */
.header-slogan {
    font-family: 'Dancing Script', cursive;
    color: var(--secondary-color);
    font-size: 2.2rem;
    text-align: center;
    flex-grow: 1;
}
[data-theme="dark"] .header-slogan {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-social a:hover {
    color: white;
}

/* Global Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    text-align: center;
}
.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(144, 98, 77, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(144, 98, 77, 0.4);
}
[data-theme="dark"] .btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 192, 203, 0.3);
}
[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 192, 203, 0.4);
}
.btn-info {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 192, 203, 0.3);
}
.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 192, 203, 0.4);
}
[data-theme="dark"] .btn-info {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(144, 98, 77, 0.3);
}
[data-theme="dark"] .btn-info:hover {
    box-shadow: 0 6px 20px rgba(144, 98, 77, 0.4);
}

/* Botones en Tarjetas de Productos/Servicios (Más pequeños y elegantes) */
.card .btn {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.card .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 12px rgba(0,0,0,0.15) !important;
    filter: brightness(1.05) !important;
}

[data-theme="dark"] .card .btn {
    box-shadow: 0 2px 6px rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] .card .btn:hover {
    box-shadow: 0 5px 12px rgba(255,255,255,0.1) !important;
}

/* ========================================================= */
/* IMAGE MODAL (LIGHTBOX) STYLES                             */
/* ========================================================= */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo oscuro */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.image-modal-content {
    background: var(--bg-color);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.image-modal.show .image-modal-content {
    transform: scale(1);
}

.image-modal-close {
    color: var(--text-color);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.image-modal-img {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.image-modal-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}
[data-theme="dark"] .image-modal-title {
    color: var(--primary-color);
}

.image-modal-desc {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.image-modal-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-color);
    background: rgba(255, 192, 203, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: inline-block;
}
[data-theme="dark"] .image-modal-price {
    background: rgba(144, 98, 77, 0.4);
}

/* Indicador visual de que la imagen se puede clickear */
.card img {
    cursor: zoom-in;
}

/* ========================================================= */
/* MOBILE SPECIFIC STYLES (NATIVE APP FEEL)                  */
/* ========================================================= */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    /* Header Adjustments */
    header {
        padding: 0.8rem 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .logo-img {
        height: 45px; /* Logo más pequeño en móvil */
        margin: 0 auto;
    }
    
    .header-slogan {
        font-size: 1.2rem; /* Slogan más pequeño en móvil */
        flex-basis: 100%;
        order: 3;
        margin-top: 5px;
    }
    
    nav ul {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        font-size: 0.9rem;
        padding: 5px 12px;
        background: rgba(0,0,0,0.05);
        border-radius: 20px;
    }
    [data-theme="dark"] nav a {
        background: rgba(255,255,255,0.1);
    }
    
    /* Main container */
    main {
        padding: 130px 0.5rem 1rem 0.5rem;
    }
    
    /* Tabs Swipeables / Hide on Mobile */
    .tabs {
        display: none !important; /* Hide on mobile to clean up main view */
    }
    
    .category-filters {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    .category-filters::-webkit-scrollbar {
        display: none;
    }
    .category-filters .filter-btn {
        flex: 0 0 auto;
    }

    /* Cards */
    .card {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    
    .card img {
        height: 180px; /* Uniform image heights on mobile */
    }
    
    /* Ajustes para que los botones de WhatsApp y Agregar al carrito no desborden */
    .card > div[style*="flex"] {
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 15px !important;
    }
    
    /* Botones Nativos */
    .card .btn {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 1rem !important;
        border-radius: 25px !important; /* Estilo píldora nativo */
        justify-content: center !important;
        text-align: center;
        white-space: normal !important;
        height: auto !important;
    }
    
    /* Footer */
    .glass-footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 10px;
    }
    
    .footer-social a {
        font-size: 2rem; /* Iconos más grandes para el dedo */
    }
    
    .footer-copyright, .footer-version {
        text-align: center;
        width: 100%;
        display: block;
        margin-top: 5px;
        padding-right: 0 !important; /* Elimina el desplazamiento a la izquierda del escritorio */
    }
}
