        :root { --cafe-oscuro: #5a3921; --cafe-medio: #8b5a2b; --cafe-claro: #f5e7d3; --dorado: #d4af37; --blanco: #ffffff; --negro: #1a1a1a; --sombra: 0 10px 30px rgba(0, 0, 0, 0.1); --transicion: all 0.3s ease; }
        body.dark-mode { --cafe-oscuro: #f5e7d3; --cafe-medio: #d4af37; --cafe-claro: #1a1a1a; --dorado: #e0c268; --blanco: #2c2c2c; --negro: #f0f0f0; --sombra: 0 10px 30px rgba(0, 0, 0, 0.3); }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Montserrat', sans-serif; background-color: var(--cafe-claro); color: var(--negro); line-height: 1.7; overflow-x: hidden; opacity: 0; transition: opacity 0.5s ease-out, background-color 0.3s ease, color 0.3s ease; }
       header {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
    padding: 0;
    height: 50vh;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/nuevo-fondo.jpg');
    background-size: cover;
    background-position: center;
}
        .logo-container { background: transparent; padding: 20px; border-radius: 10px; }
        .logo-text { color: var(--blanco); font-size: 3.5rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.6); }
        .subtitulo { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; text-shadow: 1px 1px 4px rgba(0,0,0,0.6); }
        .header-top-bar { position: absolute; top: 0; right: 0; left: 0; display: flex; justify-content: space-between; align-items: center; padding: 20px; z-index: 10; }
        .theme-toggle-btn, .user-account-btn { background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: white; width: 45px; height: 45px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transicion); }
        .theme-toggle-btn:hover, .user-account-btn:hover { background-color: rgba(255, 255, 255, 0.2); transform: scale(1.1); }
        #user-area { display: flex; align-items: center; gap: 15px; }
        main { padding: 0 20px; max-width: 1200px; margin: -60px auto 50px auto; position: relative; z-index: 5; }
        .admin-panel { display: none; padding: 25px; background-color: var(--blanco); border-radius: 8px; margin-bottom: 30px; box-shadow: var(--sombra); }
        .admin-panel h2 { text-align: center; font-family: 'Playfair Display', serif; margin-bottom: 20px; font-size: 1.8rem; color: var(--cafe-oscuro); }
        .admin-panel-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
        .admin-btn { background-color: var(--dorado); color: var(--cafe-oscuro); border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: var(--transicion); display: flex; align-items: center; gap: 8px; }
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; display: none; align-items: center; justify-content: center; overflow-y: auto; padding: 20px 0;}
        .modal-content { background: var(--blanco); padding: 30px; border-radius: 8px; width: 90%; max-width: 500px; box-shadow: var(--sombra); position: relative; margin: auto; }
        .modal-close { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #aaa; }
        .modal-content h2 { font-family: 'Playfair Display', serif; color: var(--cafe-oscuro); margin-bottom: 20px; text-align: center; }
        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--cafe-medio); }
        .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border-radius: 5px; border: 1px solid #ccc; font-family: 'Montserrat', sans-serif; }
        .form-group small { font-size: 0.8rem; color: #777; }
        .submit-btn { width: 100%; padding: 12px; background-color: var(--cafe-oscuro); color: var(--blanco); border: none; border-radius: 5px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: var(--transicion); }
        .auth-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid #ccc; }
        .auth-tab { flex: 1; padding: 10px; text-align: center; cursor: pointer; background: #f9f9f9; color: #aaa; border: 1px solid #ccc; border-bottom: none; }
        .auth-tab.active { background: var(--blanco); color: var(--cafe-oscuro); border-bottom: 1px solid var(--blanco); font-weight: bold; }
        .auth-form { display: none; }
        .auth-form.active { display: block; }
        .form-message { padding: 10px; margin-bottom: 15px; border-radius: 5px; text-align: center; display: none; }
        .form-message.error { background-color: #f8d7da; color: #721c24; }
        .form-message.success { background-color: #d4edda; color: #155724; }
        .profile-points-display { text-align: center; margin: 10px 0 25px 0; }
        .profile-points-display .points-value { font-size: 4rem; font-weight: 700; color: var(--dorado); line-height: 1; font-family: 'Playfair Display', serif; }
        .profile-points-display .points-label { font-size: 1rem; color: var(--cafe-medio); }
        .profile-details-list { list-style: none; margin: 0; padding: 0; }
        .profile-details-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eee; }
        .acordeon { margin-bottom: 20px; border-radius: 8px; overflow: hidden; box-shadow: var(--sombra); background-color: var(--blanco); transition: var(--transicion); }
        .acordeon-titulo { background: linear-gradient(135deg, var(--cafe-oscuro) 0%, var(--cafe-medio) 100%); color: var(--blanco); padding: 18px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transicion); }
        .acordeon-titulo h2 { font-size: 1.2rem; margin: 0; font-weight: 600; display: flex; align-items: center; flex-grow: 1; }
        .acordeon-titulo h2 .fas { margin-right: 15px; }
        .acordeon-titulo .icono-acordeon { transition: transform 0.3s ease; margin-left: 20px; }
        .acordeon-titulo.activo .icono-acordeon { transform: rotate(45deg); }
        .acordeon-contenido { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; }
        .productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 25px; }
        .card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
        .card-img { width: 100%; height: 200px; object-fit: cover; }
        .card-contenido { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
        .card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--cafe-oscuro); margin-bottom: 10px; }
        .card p { font-size: 0.9rem; color: #555; margin-bottom: 15px; flex-grow: 1; }
        .precio { font-weight: 600; font-size: 1.2rem; color: var(--cafe-oscuro); margin-top: auto; }
        .admin-botones { margin-top: 15px; display: flex; gap: 10px; }
        .admin-botones button { flex: 1; padding: 8px 12px; border: none; border-radius: 4px; color: white; cursor: pointer; font-size: 0.8rem; }
        .edit-btn { background-color: #31b0d5; }
        .delete-btn { background-color: #d9534f; }
        .admin-controles-categoria { display: flex; align-items: center; gap: 10px; }
        .cat-edit-btn { background: rgba(255,255,255,0.2); border: none; color: white; cursor: pointer; border-radius: 5px; width: 30px; height: 30px; font-size:0.9rem; }
        .cat-edit-btn:hover { background: white; color: var(--cafe-oscuro); }
        footer { text-align: center; padding: 20px; background-color: var(--cafe-oscuro); color: var(--blanco); margin-top: 40px;}
        /* --- Estilos para el Buscador --- */
        .search-container {
            position: relative;
            margin: 0 auto 35px auto;
            max-width: 700px;
        }
        #search-input {
            width: 100%;
            padding: 18px 25px 18px 60px;
            border-radius: 50px;
            border: 1px solid #ddd;
            font-size: 1.15rem;
            font-family: 'Montserrat', sans-serif;
            box-shadow: var(--sombra);
            transition: var(--transicion);
            background-color: var(--blanco);
            color: var(--negro);
        }
        #search-input:focus {
            outline: none;
            border-color: var(--cafe-medio);
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }
        .search-container .fa-search {
            position: absolute;
            left: 28px;
            top: 50%;
            transform: translateY(-50%);
            color: #aaa;
            font-size: 1.2rem;
            transition: var(--transicion);
        }
        #search-input:focus + .fa-search {
            color: var(--cafe-medio);
        }
        .cart-footer {
           margin-top: 20px;
           padding: 20px 15px; /* Añadimos padding horizontal */
           border-top: 2px solid var(--cafe-oscuro);
           text-align: center;
       }
       #cart-items-container {
           padding: 15px;
       }
        .add-to-cart-btn {
            background-color: var(--dorado);
            color: var(--cafe-oscuro);
            border: none;
            border-radius: 5px;
            padding: 8px 15px;
            font-weight: bold;
            cursor: pointer;
            transition: var(--transicion);
        }
        .add-to-cart-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        .add-to-cart-btn .fas {
            margin-right: 8px;
        }
        #cart-float-button {
        position: fixed;
        width: 60px;
        height: 60px;
        bottom: 25px;
        right: 25px;
        background-color: var(--cafe-oscuro);
        color: var(--blanco);
        border-radius: 50px;
        text-align: center;
        font-size: 24px;
        box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
        z-index: 100;
        display: none; /* Oculto por defecto */
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transicion);
        border: 2px solid var(--blanco);
    }
    .cart-item {
           display: grid;
           grid-template-columns: 2fr 1fr 1fr 0.5fr; /* Define 4 columnas */
           align-items: center;
           padding: 10px 0;
           margin-bottom: 10px;
           border-bottom: 1px solid #eee;
       }
       .cart-item:last-child {
           border-bottom: none; /* Quita la línea del último item */
           padding-bottom: 0;
           margin-bottom: 0;
       }
       .cart-item-details {
           display: flex;
           flex-direction: column;
           justify-content: center;
       }
       .cart-item-details strong {
           font-size: 1rem;
       }
       .cart-item-details span {
           font-size: 0.85rem;
           color: #777;
       }
       .quantity-controls {
           display: flex;
           align-items: center;
           justify-content: center;
       }
       .quantity-controls button {
           background: none;
           border: 1px solid #ccc;
           color: var(--negro);
           width: 25px;
           height: 25px;
           border-radius: 50%;
           cursor: pointer;
           font-size: 0.8rem;
           display: flex;
           align-items: center;
           justify-content: center;
           line-height: 1;
           padding: 0;
           margin: 0 5px;
       }
       .quantity-controls span {
           font-weight: bold;
           font-size: 0.9rem;
           min-width: 20px; /* Para alinear los números */
           text-align: center;
       }
       .cart-item-price {
           font-weight: bold;
           text-align: right;
           font-size: 0.9rem;
       }
       /* --- NUEVO: ESTILOS PARA PRODUCTOS INACTIVOS Y BOTÓN DE VISIBILIDAD --- */
.card.inactive {
    opacity: 0.6;
    border-style: dashed;
    border-color: #aaa;
}
.card.inactive .card-img {
    filter: grayscale(100%);
}
.card.inactive:hover {
    opacity: 1; /* Al pasar el mouse, recupera opacidad para interactuar mejor */
}
.toggle-btn {
    background-color: #5bc0de; /* Un color cian o 'info' */
}
/* --- ESTILOS PARA FUNCIONES NUEVAS --- */

/* Para el botón de Habilitar/Deshabilitar */
.toggle-btn {
    background-color: #5bc0de; /* Un color cian o 'info' */
}

/* Para los productos inactivos (ocultos) */
.card.inactive {
    opacity: 0.6;
    border-style: dashed;
    border-color: #aaa;
}
.card.inactive .card-img {
    filter: grayscale(100%);
}
.card.inactive:hover {
    opacity: 1; /* Al pasar el mouse, recupera opacidad para interactuar mejor */
}

/* Para la etiqueta de "Oferta", "Nuevo", etc. */
.card {
    position: relative; /* Necesario para posicionar la viñeta */
    overflow: hidden; 
}
.card-badge {
    position: absolute;
    top: 15px;
    left: -8px;
    background: var(--dorado);
    color: var(--cafe-oscuro);
    padding: 5px 12px 5px 20px;
    border-radius: 0 4px 4px 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}
.card-badge::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    border-top: 8px solid #a88a25; /* Un poco más oscuro para el efecto 3D */
    border-left: 8px solid transparent;
}
/* --- ESTILOS PARA ALÉRGENOS --- */
.card-alergenos {
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}
.card-alergenos strong {
    color: var(--cafe-medio);
}
.card-alergenos .fa-exclamation-triangle {
    margin-right: 5px;
    color: #d9534f;
}
/* --- ESTILOS PARA EL GESTOR DE RECOMPENSAS --- */
.rewards-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.rewards-list th, .rewards-list td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
.rewards-list th {
    background-color: var(--cafe-oscuro);
    color: var(--blanco);
    font-size: 0.9rem;
}
.rewards-list td {
    font-size: 0.9rem;
}
.rewards-list .actions {
    text-align: center;
}
.rewards-list .actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin: 0 5px;
    font-size: 1.1rem;
}
.rewards-list .actions .btn-edit-reward {
    color: #31b0d5;
}
.rewards-list .actions .btn-delete-reward {
    color: #d9534f;
}
.rewards-list .actions .btn-toggle-reward {
    color: #5cb85c;
}
.reward-inactive td {
    opacity: 0.5;
    text-decoration: line-through;
}
.reward-inactive .btn-toggle-reward {
    color: #f0ad4e; /* Naranja para "activar" */
}
/* --- Estilos para la Lista de Recompensas en el Perfil --- */
.rewards-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.rewards-section h3 {
    text-align: center;
    color: var(--cafe-medio);
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}
.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #f5f5f5;
}
.reward-item:last-child {
    border-bottom: none;
}
.reward-details {
    flex-grow: 1;
}
.reward-details strong {
    font-size: 1rem;
    color: var(--negro);
}
.reward-details span {
    display: block;
    font-size: 0.85rem;
    color: var(--dorado);
    font-weight: 600;
}
.redeem-btn {
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid var(--dorado);
    background-color: var(--dorado);
    color: var(--cafe-oscuro);
    transition: var(--transicion);
}
.redeem-btn:disabled {
    background-color: #e0e0e0;
    border-color: #ccc;
    color: #aaa;
    cursor: not-allowed;
}
.redeem-btn:not(:disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* --- Estilos para la Ventana del Cupón --- */
.coupon-modal-content {
    text-align: center;
    padding: 40px;
}
.coupon-code {
    background-color: var(--cafe-claro);
    border: 2px dashed var(--dorado);
    padding: 20px;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--cafe-oscuro);
    margin: 20px 0;
    border-radius: 8px;
}
.coupon-modal-content p {
    margin-bottom: 20px;
}
.copy-btn {
    background: var(--cafe-medio);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transicion);
}
.copy-btn:hover {
    background: var(--cafe-oscuro);
}
/* --- Estilos para la Gestión de Personal --- */
.staff-list table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.staff-list th, .staff-list td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 0.9rem;
}
.staff-list th {
    background-color: var(--cafe-medio);
    color: var(--blanco);
}
.staff-list .actions-staff {
    text-align: center;
}
.staff-list .actions-staff button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #d9534f;
}
.form-container-staff {
    border-top: 2px dashed #ccc;
    margin-top: 20px;
    padding-top: 20px;
}
/* --- Estilos para el Validador de Cupones --- */
.coupon-validator-result {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 20px;
}
.coupon-details-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: left;
}
.coupon-details-box p {
    margin: 5px 0;
}
.coupon-valid { border-left: 5px solid #28a745; }
.coupon-invalid { border-left: 5px solid #d9534f; }
body {
    opacity: 1 !important;
}
.admin-access {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1rem;
}

.admin-access a {
    text-decoration: none;
    color: #5c2a00; /* color del tema */
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-access a:hover {
    color: #a0522d;
}
.admin-access {
    position: fixed;
    top: 20px;
    right: 20px;
}

.btn-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #5c2a00; /* color del botón */
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.2s;
}

.btn-admin:hover {
    background-color: #a0522d;
    transform: scale(1.1);
}
/* ============================= */
/* ESTILO PANEL ADMIN KYRA */
/* ============================= */

body {
    opacity: 1 !important;
}

/* Fondo general admin */
.admin-body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cafe-claro);
    color: var(--negro);
    min-height: 100vh;
}

/* Header admin */
.admin-header {
    background: linear-gradient(135deg, var(--cafe-oscuro) 0%, var(--cafe-medio) 100%);
    color: var(--blanco);
    padding: 35px 20px;
    text-align: center;
    box-shadow: var(--sombra);
}

.admin-header .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--blanco);
    margin-bottom: 5px;
}

.admin-header .subtitulo {
    color: rgba(255,255,255,0.9);
}

/* Contenedor principal */
.admin-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 25px;
    background-color: var(--blanco);
    border-radius: 12px;
    box-shadow: var(--sombra);
}

/* Títulos */
.admin-container h2,
.admin-container h3 {
    font-family: 'Playfair Display', serif;
    color: var(--cafe-oscuro);
    text-align: center;
    margin-bottom: 20px;
}

.admin-container h2 {
    font-size: 2rem;
}

.admin-container h3 {
    font-size: 1.4rem;
    margin-top: 25px;
}

/* Bienvenida */
.bienvenido {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
}

.bienvenido a,
.volver-dashboard a {
    color: var(--cafe-medio);
    font-weight: 700;
    text-decoration: none;
}

.bienvenido a:hover,
.volver-dashboard a:hover {
    color: var(--dorado);
}

.volver-dashboard {
    text-align: center;
    margin-bottom: 25px;
}

/* Menú dashboard */
.admin-menu ul {
    list-style: none;
    padding: 0;
    margin: 25px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-menu li {
    margin: 0;
}

.admin-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dorado);
    color: var(--cafe-oscuro);
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: var(--transicion);
}

.admin-menu a:hover {
    transform: translateY(-2px);
    background-color: var(--cafe-medio);
    color: var(--blanco);
}

/* Formulario productos */
.formulario-producto {
    background-color: #fffaf3;
    border: 1px solid #ead8bd;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 35px;
}

.formulario-producto form {
    display: grid;
    gap: 14px;
}

.formulario-producto label {
    font-weight: 700;
    color: var(--cafe-medio);
}

.input-field,
.formulario-producto input,
.formulario-producto textarea,
.formulario-producto select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d7c3a8;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    background-color: #fff;
}

.formulario-producto textarea {
    min-height: 90px;
    resize: vertical;
}

.btn-submit,
.formulario-producto button {
    background-color: var(--cafe-oscuro);
    color: var(--blanco);
    border: none;
    padding: 13px 18px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transicion);
    margin-top: 10px;
}

.btn-submit:hover,
.formulario-producto button:hover {
    background-color: var(--cafe-medio);
    transform: translateY(-1px);
}

/* Tabla productos */
.tabla-productos-container {
    overflow-x: auto;
    margin-top: 25px;
}

.tabla-productos {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.tabla-productos th {
    background-color: var(--cafe-oscuro);
    color: var(--blanco);
    padding: 12px;
    font-size: 0.9rem;
    text-align: left;
}

.tabla-productos td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.88rem;
    vertical-align: middle;
}

.tabla-productos tr:nth-child(even) {
    background-color: #fff8ef;
}

.tabla-productos tr:hover {
    background-color: #f5e7d3;
}

.img-producto {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Botones de acción */
.btn-accion {
    display: inline-block;
    padding: 6px 10px;
    margin: 2px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    background-color: var(--dorado);
    color: var(--cafe-oscuro);
    transition: var(--transicion);
}

.btn-accion:hover {
    background-color: var(--cafe-medio);
    color: var(--blanco);
}

/* Login admin */
.login-container {
    max-width: 430px;
    margin: 70px auto;
    padding: 30px;
    background-color: var(--blanco);
    border-radius: 12px;
    box-shadow: var(--sombra);
    text-align: center;
}

.login-container .logo-text {
    font-family: 'Playfair Display', serif;
    color: var(--cafe-oscuro);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: none;
}

.login-form {
    display: grid;
    gap: 12px;
    text-align: left;
}

.login-form label {
    font-weight: 700;
    color: var(--cafe-medio);
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d7c3a8;
    border-radius: 6px;
}

.mensaje-error {
    margin-top: 15px;
    color: #b00020;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-container {
        margin: 15px;
        padding: 18px;
    }

    .admin-header .logo-text {
        font-size: 2.2rem;
    }

    .admin-menu ul {
        flex-direction: column;
    }

    .admin-menu a {
        width: 100%;
    }

    .tabla-productos th,
    .tabla-productos td {
        font-size: 0.78rem;
        padding: 8px;
    }
}
.carrito-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    background: #fffaf3;
    border: 1px solid #ead8bd;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-family: 'Montserrat', sans-serif;
    z-index: 1000;
}

.carrito-flotante h3 {
    margin-top: 0;
    font-size: 1.2rem;
    text-align: center;
}

.carrito-flotante ul {
    list-style: none;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
}

.carrito-flotante li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

#solicitar-whatsapp {
    display: block;
    width: 100%;
    background-color: #f0c040;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

#solicitar-whatsapp:hover {
    background-color: #d9a62d;
}
/* Carrito flotante adaptado al estilo Chocolates Kyra */
.carrito-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background-color: #fffaf3; /* color de fondo similar a las tarjetas */
    border: 1px solid #ead8bd;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    z-index: 1000;
    overflow-y: auto;
}

.carrito-flotante h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    color: #6b3e26; /* color de los títulos de tus tarjetas */
}

.carrito-flotante ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.carrito-flotante li {
    margin-bottom: 8px;
    border-bottom: 1px dashed #ead8bd;
    padding-bottom: 4px;
    color: #3e2f23; /* texto de los productos */
}

#total-carrito {
    font-weight: 700;
    color: #6b3e26;
}

#solicitar-whatsapp {
    display: block;
    width: 100%;
    background-color: #f0c040; /* botón principal como tus botones de acción */
    border: none;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    color: #3e2f23;
    transition: all 0.3s ease;
}

#solicitar-whatsapp:hover {
    background-color: #d9a62d;
    color: #fffaf3;
}

.carrito-flotante::-webkit-scrollbar {
    width: 6px;
}

.carrito-flotante::-webkit-scrollbar-thumb {
    background-color: #ead8bd;
    border-radius: 3px;
}
/* Mini carrito */
.mini-carrito {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #f0c040;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 18px;
    color: #3e2f23;
}

.mini-carrito #contador-carrito {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #d9534f;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pop-up carrito */
.popup-carrito {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background-color: #fffaf3;
    border: 1px solid #ead8bd;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    overflow-y: auto;
    z-index: 1001;
}
.popup-carrito h3 {
    margin-top: 0;
    text-align: center;
}
.popup-carrito ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.popup-carrito li {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}
.popup-carrito li button {
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
}
.popup-carrito button:hover {
    opacity: 0.8;
}
/* Botón “Añadir” llamativo */
.btn-anadir {
    background: linear-gradient(145deg, #f0c040, #f9d976); /* colores cálidos tipo chocolate / dorado */
    color: #3e2f23;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-anadir:hover {
    background: linear-gradient(145deg, #f9d976, #f0c040);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.btn-anadir:active {
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
/* Alinear los botones del dashboard horizontalmente */
.admin-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap; /* permite que bajen en móviles */
    gap: 15px; /* espacio entre botones */
}

.admin-menu li {
    display: inline-block;
}

.admin-menu li a {
    display: inline-block;
    background-color: #f0c040;
    color: #3e2f23;
    font-weight: 700;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.admin-menu li a:hover {
    background-color: #d9a62d;
    color: #fffaf3;
}
   