body {
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #008ab4 0%, #00bdf6 60%, #74e0ff 100%);
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #333;
}

/* 🎨 Encabezado con vida y latido */
.titulo-img {
    width: 100%;
    flex: 0 0 auto;
    position: relative;
    background: linear-gradient(135deg, #74d6f7, #c1f0ff);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 10;
    border-bottom: 4px solid rgba(0, 0, 0, 0.05);
    animation: fadeDown 1s ease-in-out, pulseHeader 2.2s ease-in-out infinite;
}

.titulo-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.6s ease, filter 0.6s ease;
    padding: 8px 0;
}

.titulo-img:hover img {
    transform: scale(1.015);
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25));
}

/* 🔁 Animaciones */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseHeader {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.012);
    }
}

/* Contenedor de sabores */
.sabores-container {
    flex: 1 1 auto;
    padding: 10px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 1fr;
    box-sizing: border-box;
    height: 100%;
}

/* 🎨 Botones sabor estilo 3D */
.sabor-btn {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    box-shadow: 6px 6px 12px rgba(0,0,0,0.1),
                -4px -4px 8px rgba(255,255,255,0.7);
    border-radius: 20px;
    border: none;
    padding: 16px;
    font-size: clamp(12px, 1.5vw, 20px);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    white-space: normal;
    user-select: none;
    position: relative;
}

.sabor-btn:hover {
    background: linear-gradient(145deg, #f4f4f4, #ffffff);
    transform: translateY(-2px);
    box-shadow: 8px 8px 16px rgba(0,0,0,0.12),
                -5px -5px 10px rgba(255,255,255,0.8);
}

.sabor-btn:active {
    transform: translateY(1px);
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.15),
                inset -4px -4px 6px rgba(255,255,255,0.7);
}

.sabor-no-disponible {
    background: #2f2f2f !important;
    color: #888 !important;
    text-decoration: line-through;
    text-decoration-thickness: 5px;
    box-shadow: inset 2px 2px 6px rgba(0,0,0,0.3);
}

/* ⚙️ Icono Admin estático */
#adminIcon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    z-index: 2000;
    color: #fff;
    user-select: none;
    line-height: 1;
}

/* 📋 Panel admin fijo y sin deformación */
#adminMenu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: #1e90b4;
    padding: 24px;
    box-sizing: border-box;
    transition: right 0.3s ease;
    z-index: 1999;
    overflow-y: auto;
    font-size: 14px;
}

#adminMenu.active {
    right: 0;
}

.add-sabor input {
    padding: 10px;
    font-size: 15px;
    width: 160px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: #fff;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1);
    text-transform: uppercase;
}

.add-sabor button {
    padding: 10px 12px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    background-color: #3ed1ac;
    color: #fff;
    cursor: pointer;
    margin-left: 6px;
    transition: background-color 0.2s, transform 0.2s;
}

.add-sabor button:hover {
    background-color: #31b193;
    transform: scale(1.05);
}

#saboresAdminContainer {
    margin-top: 20px;
}

#saboresAdminContainer .admin-sabor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 14px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-sizing: border-box;
    text-transform: uppercase;
    font-size: 14px;
    color: #fff;
}

#saboresAdminContainer .admin-sabor button {
    background-color: #ff6b6b;
    color: #fff;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

#saboresAdminContainer .admin-sabor button:hover {
    background-color: #ff3b3b;
}

/* ✅ Hover visible para botones tachados (no disponibles) */
.sabor-no-disponible:hover {
    background-color: #444 !important;
    color: #aaa !important;
    cursor: not-allowed;
}
