:root {
    --primary-color: #ec931d;
    --bg-color: #e2e3e4;
    --card-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #777777;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}
body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    height: 100vh; 
    overflow: hidden; 
}

/* --- ESTILOS DE PORTADA (LANDING) --- */
#landing-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 30px;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#landing-cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Imagenes/imagen_fondo.jpg'); 
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.4); 
    transform: scale(1.1); 
    z-index: -1; 
}
#landing-cover.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}
img.landing-title {
    max-width: 250px;
    width: 80%;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}
.landing-tagline {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #eee;
}
.enter-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: transform 0.2s ease;
}
.enter-btn:active { transform: scale(0.95); }

/* --- MENÚ INTERNO --- */
#main-menu-container {
    opacity: 0;
    transition: opacity 0.8s ease-in;
    padding-bottom: 50px;
    height: 100vh;
    overflow-y: auto;
}
header {
    background-color: var(--card-bg);
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
    text-align: left;
    flex-grow: 1;
}
.category-nav {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px;
    background: var(--bg-color);
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky; 
    top: 59px; 
    z-index: 90;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.category-nav::-webkit-scrollbar { display: none; }
.nav-btn {
    background: var(--card-bg); 
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    flex-shrink: 0;
}
.nav-btn.active {
    background-color: var(--primary-color);
    color: white;
}
.menu-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}
.category-section {
    margin-bottom: 35px;
    scroll-margin-top: 140px; 
}
.category-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    margin-top: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}
.category-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background-color: var(--primary-color);
    margin-right: 10px;
    border-radius: 4px;
}
.item-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: stretch;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer; /* Indica que es clickeable */
}
.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.item-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.item-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-price {
    font-weight: 700;
    color: #a86518;
    font-size: 1.1rem;
    margin-top: auto;
}
.item-image {
    width: 95px;
    height: 95px;
    border-radius: var(--border-radius);
    object-fit: cover;
    background-color: #eee;
    flex-shrink: 0;
}
footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    background-color: var(--bg-color);
}
.subheader-card {
    background-color: #d3d1d1; 
    padding: 10px;
    margin: 20px 0 10px 0; 
    font-weight: 700;
    text-align: center;
    border-radius: 5px;
    color: #333;
}
[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-dark: #e0e0e0;
    --text-light: #a0a0a0;
    --shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.icon-btn {
    background-color: var(--card-bg);
    border: 1px solid var(--text-light);
    color: var(--text-dark);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.2rem; /* Bajamos un poco el tamaño para que quepa mejor */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    line-height: 1; /* Evita que el texto se desplace hacia abajo */
    padding: 0;      /* Asegura que no haya rellenos extra */
}
.modal {
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.modal.visible { opacity: 1; visibility: visible; }
.modal-content {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal.visible .modal-content { transform: translateY(0); }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--text-light);
}
.close-btn {
    color: var(--text-light);
    font-size: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
}
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.setting-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    min-width: 140px;
}

/* --- NUEVO: ESTILOS DETALLE DE PRODUCTO --- */
.product-detail {
    padding: 0;
    overflow: hidden;
    max-width: 450px;
    position: relative;
}
.modal-main-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.modal-info-container {
    padding: 20px;
}
.modal-info-container h2 {
    margin-bottom: 10px;
    color: var(--text-dark);
}
.modal-info-container p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 1rem;
}
.detail-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    z-index: 10;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}